开发者

Auto adjust table row height keeping width fixed

开发者 https://www.devze.com 2023-02-16 14:21 出处:网络
I have a table containing many rows. I can allow a change in row height to fill the contents, but I 开发者_开发百科want to keep my cell width fixed. Setting a max-width to cell solves the problem, but

I have a table containing many rows. I can allow a change in row height to fill the contents, but I 开发者_开发百科want to keep my cell width fixed. Setting a max-width to cell solves the problem, but the content over flows to the next cell.. Can anybody have a solution in html/css or something else?


In addition to max-width, set overflow: hidden;. See http://jsfiddle.net/andyedinborough/nq7rA/1/

0

精彩评论

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