CSS 表格大小
工作台宽度和高度
width``height: 表的宽度和高度由 和 属性定义。
下面的示例将表格的宽度设置为 100%,并将 <th> 元素设置为 70px:

1 | table { width: 100%;} |
要创建一个只占页面一半的表格,请使用:width: 50%

1 | table { width: 50%;} |
阅读量:0
收藏数:0
点赞数:0width``height: 表的宽度和高度由 和 属性定义。
下面的示例将表格的宽度设置为 100%,并将 <th> 元素设置为 70px:

1 | table { width: 100%;} |
要创建一个只占页面一半的表格,请使用:width: 50%

1 | table { width: 50%;} |
0评论