

.bar { width: 960px; line-height: 30px; background: blue; color: white; font-weight: bold;}.navi { width: 960px; padding: 5px; background: green; color: white; font-weight: bold;}.style1 {color: white; width: 500px;}.style2 {font-weight: bold; line-height:30px;}Here is some text这个DIV的class中的XXX无关紧要这个DIV的class中的XXX无关紧要Here is some text
.text_white {color:white;} .text_bold {font-weight: bold;} .width_960 {width: 960px;}.bar { line-height: 30px; background: blue;}.navi { padding: 5px; background: green;}.style1 {width: 500px;}.style2 {line-height:30px;}Here is some text这个DIV的class中的XXX无关紧要这个DIV的class中的XXX无关紧要Here is some text
你朋友做的很对 这样才是css的本意
你朋友做的很对 这样才是css的本意
可是如果一个DIV继承多个CLASS(有时候有七八个)那样效率会不会很低?
你朋友做的很对 这样才是css的本意
可是如果一个DIV继承多个CLASS(有时候有七八个)那样效率会不会很低?
那你要证明你这个div 必须处于7种不同类型的变化下面
如果需要那就 这样写
先不要考虑效率
先实现 效率问题需要的时候才进行重构
你朋友做的很对 这样才是css的本意
可是如果一个DIV继承多个CLASS(有时候有七八个)那样效率会不会很低?
那你要证明你这个div 必须处于7种不同类型的变化下面
如果需要那就 这样写
先不要考虑效率
先实现 效率问题需要的时候才进行重构
好的,我知道了,谢谢你
