开发者

How to do a carriage return for a <th> tag in html

开发者 https://www.devze.com 2022-12-31 09:30 出处:网络
hello i have a table with <th> i want 开发者_运维百科to do a carriage return when my titlle is longEither insert a <br /> tag at the place you want the text to wrap or use the CSS style wh

hello i have a table with <th> i want 开发者_运维百科to do a carriage return when my titlle is long


Either insert a <br /> tag at the place you want the text to wrap or use the CSS style white-space:normal to allow the browser to split the text at a place it thinks best. Since this rarely works well, you should also give the column a specific width so the break appears in a nice place.

0

精彩评论

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

关注公众号