简体   繁体   中英

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.

Can you please suggest how to get it work in all the browsers (IE, firefox, chrome)

也许将word-wrap: break-word属性添加到css

试试这个属性来css

word-break: break-all;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM