最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html中table整体缩小,html

运维笔记admin59浏览0评论

html中table整体缩小,html

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;

}

testtesttest
testtesttest

边界折叠示例:

table {

border-collapse: collapse;

}

tr.alternate {

background-color: #aaa;

}

testtesttest
testtesttest

如您所见,您不需要为td设置单独的类.

发布评论

评论列表(0)

  1. 暂无评论