开发者

CSS: How to specify a min-width on a table?

开发者 https://www.devze.com 2023-03-26 22:41 出处:网络
I have a table that is supposed to take up 100% of the width, but when I shrink my brows开发者_开发知识库er window, I also need it to obey a min-width. However, applying a min-width on the table has n

I have a table that is supposed to take up 100% of the width, but when I shrink my brows开发者_开发知识库er window, I also need it to obey a min-width. However, applying a min-width on the table has no affect (viewing in the latest version of Safari).

How can this be done?

<table width="100%" style="min-width:800px">...</table>


Apply the min-width on a container div.

Also note: min-width can be specified for td elements.

0

精彩评论

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