这个CSS代码什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/28 18:24:49
.clear { clear:both; font-size:0; height:0; line-height:0; visibility:hidden; }
a { text-decoration:underline; color:#29b0c4;}
a:hover { text-decoration:underline; color:#f80; text-decoration:none; }
a img { border:none; }
li h3 { font-size:13px; }
table { border-collapse:collapse; }
table td { vertical-align: top; }

.clear 清除浮动 visibility:hidden 隐藏(占空间)
a 带下划线的连接 颜色是#29b0c4
a:hover 鼠标经过样式
a img 无边框
li h3 字体大小为13px
table 行和列的边框合并为单边框
table td 列内元素的垂直对齐方式为顶端对齐

.clear { clear:both; font-size:0; height:0; line-height:0; visibility:hidden; }
隐藏样式,左右不允许有浮动,字号为零,高度为零,行高为零,不显示内容
a { text-decoration:underline; color:#29b0c4;}
链接的字体带下划线,链接的颜色为#29b0c4
a:hover { text-decoration:underline;color:#f80; text-decoration:none; }
活动链接的样式,text-decoration:underline;没有意义,因为后面又定义了text-decoration:none;不带下划线样式
a img { border:none; }
链接中的图片边框为零,默认有边框
li h3 { font-size:13px; }
li中 h3的样式的字体高度是13px
table { border-collapse:collapse; }
table中的行间距
table td { vertical-align: top; }
td中的文本垂直排列的位置

看用在哪里的呢··

除了 .clear 是清除浮动的。

都是对 默认标签的初始化。。