admin管理员组文章数量:1316974
html中table整体缩小,html
您可以使用border-collapse:在表格中折叠.
The border-collapse CSS property selects a table’s border model. This
has a big influence on the look and style of the table cells.
The separated model is the traditional HTML table border model.
Adjacent cells each have their own distinct borders. The distance
between them given by the border-spacing property.
In the collapsed border model, adjacent table cells share borders. In
that model, the border-style value of inset behaves like groove, and
outset behaves like ridge.
没有边框折叠的示例:
tr.alternate {
background-color: #aaa;
}
test | test | test |
test | test | test |
边界折叠示例:
table {
border-collapse: collapse;
}
tr.alternate {
background-color: #aaa;
}
test | test | test |
test | test | test |
如您所见,您不需要为td设置单独的类.
本文标签: html中table整体缩小HTML
版权声明:本文标题:html中table整体缩小,html 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1688238098a195790.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论