最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

html中table整体缩小,html

IT圈 admin 58浏览 0评论

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设置单独的类.

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. 暂无评论