给div添加2个class

<div class='center nocontent'>  类名用空格分开

在优先级一样的情况下就近原则  优先级# 100 .10 <span>这种标签是1 所以的相加

#content .bottom .center{width:336px;height:374px;border:1px solid #e1e1e1;margin-right:10px;float:left;border-top:2px solid #0c8311;background-color:#dad9d9;}

#content .bottom .nocontent {background-color:#fff;border:1px solid #e1e1e1;}
#content .top .nocontent {background-color:#fff;border:1px solid #e1e1e1;}

posted @ 2014-09-05 16:53  樱花飞落ll  阅读(609)  评论(0编辑  收藏  举报