Bootstrap-table 文本截断
Bootstrap-table text truncate
我目前正在使用 Bootstrap-table (http://bootstrap-table.wenzhixin.net.cn/) with the bootstrap-editable extension (https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/editable) 创建带有 editable 字段的 table。我注意到当一个字符串包含 qoutes 例如:这是一个 "test" 字符串在第一个“被截断。我注意到文本已正确保存在数据库中,JSON 包含全文(“未转义)。
我该如何解决这个问题?
您需要将 text-overflow 属性 设置为 clip 或 initial 用于文本被截断的单元格。
这将有助于 https://www.w3schools.com/cssref/css3_pr_text-overflow.asp
我目前正在使用 Bootstrap-table (http://bootstrap-table.wenzhixin.net.cn/) with the bootstrap-editable extension (https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/editable) 创建带有 editable 字段的 table。我注意到当一个字符串包含 qoutes 例如:这是一个 "test" 字符串在第一个“被截断。我注意到文本已正确保存在数据库中,JSON 包含全文(“未转义)。
我该如何解决这个问题?
您需要将 text-overflow 属性 设置为 clip 或 initial 用于文本被截断的单元格。 这将有助于 https://www.w3schools.com/cssref/css3_pr_text-overflow.asp