font-size: 75%;
}
/* body */
background-color: #cef;
padding:.5em .5em .5em 3em;
}
content: “:”;
}
/* footer */
font-weight: bold;
}
color: blue;
}
content: “:”;
}
background-color: #cee;
}
border-top: .2em solid #7a7;
}
“`
在浏览器打开文档,它将看起来像下面一样:
Oceans
Area | Meandepth |
---|---|
million km2 | |
Arctic: | 13,000 |
Atlantic: | 87,000 |
Pacific: | 180,000 |
Indian: | 75,000 |
Southern: | 20,000 |
Total: | 361,000 |
Mean: | 72,000 |
4. 对比样式表里显示表格的规则来确保你理解每一条规则的效果。如果你发现你不明白某一条,注释掉,然后刷新浏览器来看看发生什么。下面是关于该表格一些注意事项:
标题是放在表格边框的外面的; 如果你在可选项中设置了最小点尺寸,它可能会影响km2这样的上标; 有三个空单元格,其中两个显示了表格的背景色,第三个有单元格自己的背景和上边框;
冒号是通过样式表来添加的。
?
“`
来源: