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>
It should be added, but it won’t have much impact. When you write CSS, you must write it in