开发者

table { border-collapse: separate; } or table { border-collapse: collapse; }

开发者 https://www.devze.com 2022-12-30 00:30 出处:网络
What should i keep table { border-collapse: separate; } or table { border-开发者_如何学运维collapse: collapse; } in my css.

What should i keep table { border-collapse: separate; } or table { border-开发者_如何学运维collapse: collapse; } in my css.

which would be better in which condition?


It depends on what you want. They are different ways to render a table with different visual results. Check out this article for an illustration.

separate is the default.

Support for some border-collapse settings is incomplete in IE. See the brilliant compatibility table

0

精彩评论

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

关注公众号