开发者

Table column width unexpectedly shortened

开发者 https://www.devze.com 2023-04-06 15:14 出处:网络
I have an HTML table (populated from a datatable on server side), with no styling except background color, and for some reason it breaks some of the lines.

I have an HTML table (populated from a datatable on server side), with no styling except background color, and for some reason it breaks some of the lines. Is there any 开发者_开发问答CSS behavior that dictates this? I tried to replicate it with a table populated with a random string of "M "s, and it also broke the line after every space...

EDIT:

What's happening:

|M|M|

|M|M|

|M|M|

What's supposed to happen:

|M M M |M M M |

Thanks!


I think you mean the NOWRAP option.

<table><tr><td NOWRAP>Text</td></tr></table>
0

精彩评论

暂无评论...
验证码 换一张
取 消