开发者

How to make width at 100% on a table work in IE8?

开发者 https://www.devze.com 2023-01-27 13:04 出处:网络
table { width: 100%; } doesn\'t seem to do anything at all on I开发者_开发问答E8.Try table{ table-layout:fixed;
table {
  width: 100%;
}

doesn't seem to do anything at all on I开发者_开发问答E8.


Try table{ table-layout:fixed; }

I had the same issue making the table 100% width in IE8.


I knew the answer, just didn't find it on SO, I think it belongs here.

You have to set the margin to make it work:

table {
  width: 100%;
  margin: 0px;
}
0

精彩评论

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