2012年8月14日 星期二

css3 important 使用方法

如果對tag的id或是class有下 !important
那不管是任何同樣名稱的class或是id 都將被受影響
如有 父 + 子層級描述 也會被影響
ex:
 .test .example{
   width:300px;
}

.example{
  width:400px !important;
}


http://jsfiddle.net/QsCxB/

沒有留言:

張貼留言