[英]word-wrap feature not working in chrome
I am using the following stylesheet code to achieve word-wrap in the column of a table: 我使用以下样式表代码在表的列中实现自动换行:
<style type="text/css">
table,td {
table-layout: fixed;
}
</style>
This code works well in firefox and I'm able to achieve word-wrapping but when I tried this in chrome browser, it doesn't work. 这段代码在firefox中运行良好,我可以实现自动换行,但是当我在chrome浏览器中尝试这个时,它不起作用。
Can you please suggest how to get it work in all the browsers (IE, firefox, chrome) 你能否建议如何在所有浏览器中使用它(IE,firefox,chrome)
也许将word-wrap: break-word
属性添加到css
试试这个属性来css
word-break: break-all;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.