Table of Contents
Reply to the discussion (solution)
Home Web Front-end HTML Tutorial How to deal with this special Table style line wrapping problem._html/css_WEB-ITnose

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

Jun 24, 2016 pm 12:12 PM

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