How to deal with this special Table style line wrapping problem._html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:12:58
Original
1187 people have browsed it

What I want to achieve is that if the content in cell td is very long, it will not wrap into new lines but expand the grid.
But every time the control I use is generated, there will be an extra style like table-layout: fixed , cannot be implemented, so every time I modify the style table-layout:auto; through js, it seems too troublesome. Is there any other way to deal with it, because table-layout:fixed is generated by default in the control? Can't be removed, is it possible to add some styles to tr or td? Please advise

<table style="width:100%;table-layout:fixed;"><tr>    <td>内容很长很长....</td></tr></table>
Copy after login


Reply to the discussion (solution)

It should be added, but it won’t have much impact. When you write CSS, you must write it in