css的#和.的区别
css的#和.的区别
如:
#home #h3 {
padding-top:0;
padding-bottom:0;
}
.pop #h2, .pop #h3 {
position:static;
background:none;
border-0;
auto;
}
其中#和.的区别是什么
用 # 定义的css 要用 > 这个div用 .pop #h3 样式</div>
</div>
.pop #h2 和 .pop #h3 是一样的
css的#和.的区别
如:
#home #h3 {
padding-top:0;
padding-bottom:0;
}
.pop #h2, .pop #h3 {
position:static;
background:none;
border-0;
auto;
}
其中#和.的区别是什么
用 # 定义的css 要用 > 这个div用 .pop #h3 样式</div>
</div>
.pop #h2 和 .pop #h3 是一样的