小白教程
所有教程
关于
Search
172.69.6.206
172.69.6.206
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Pr tab empty cells”的源代码
本页内容
上一节:
Pr_tab_caption_side
下一节:
Pr_tab_table_layout
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:empty-cells}}[[Category:css reference|178]] = CSS empty-cells 属性 = 隐藏表中的空单元格的边框和背景: <sample title="" desc="" lang="html" hererun="1"> table { border-collapse:separate; empty-cells:hide; } </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> <style> table { border-collapse:separate; empty-cells:hide; } </style> </head> <body> <table border="1"> <tr> <td>Peter</td> <td>Griffin</td> </tr> <tr> <td>Lois</td> <td></td> </tr> </table> <p><b>注意:</b> 当 !DOCTYPE 已经声明 Internet Explorer 8 支持 empty-cells属性.</p> </body> </html> </run> == 属性定义及使用说明 == empty-cells 属性设置是否显示表格中的空单元格(仅用于"分离边框"模式)。 {| class="table table-striped table-hover" | 默认值: | show |- | 继承: | yes |- | 版本: | CSS2 |- | JavaScript 语法: | object.style.emptyCells="hide" |} == 浏览器支持 == 所有主流浏览器都支持empty-cells属性。 '''注意:'''只有指定!DOCTYPE,IE8才支持empty-cells属性。 == 属性值 == {| class="table table-striped table-hover" ! 值 ! 描述 |- | hide | 不在空单元格周围绘制边框。 |- | show | 在空单元格周围绘制边框。默认。 |- | inherit | 规定应该从父元素继承 empty-cells 属性的值。 |} == 相关文章 == CSS 教程: [[css table|CSS Table]]
返回至“
Pr tab empty cells
”。
上一节:
Pr_tab_caption_side
下一节:
Pr_tab_table_layout