【发布时间】:2012-09-30 10:34:28
【问题描述】:
谁能解释这两个 CSS 选择器的区别?
.work-container . h3 {
font-size: 14px;
margin-top: 0px;
font-weight: 600;
height: 27px;
}
上面定义中多余的点是什么?
.work-container h3 {
font-size: 14px;
margin-top: 0px;
font-weight: 600;
height: 27px;
}
【问题讨论】:
-
第一个例子不是有效的 CSS。可能是笔误。
-
CSS 给了我一堆奇怪的属性,我不是 css 专家。
标签: css css-selectors