MartinLi841538513

 

在元素class里面继承多个classname,用空格分隔即可

<div class="parentDiv tableCell">
       <div class="childDiv"></div>
</div>

 

这里注意:写在后面优先级高。

 .parentDiv{width:60%;background-color: #00ff00;}
 .tableCell{width: 90%;}

 

这里也是:写在后面的优先级高

<link href="css/test1.css" type="text/css" rel="stylesheet">
<link href="css/test2.css" type="text/css" rel="stylesheet">

 

分类:

技术点:

相关文章:

  • 2021-12-01
  • 2021-08-19
  • 2022-02-09
  • 2022-02-08
  • 2021-11-17
  • 2021-05-18
  • 2022-02-16
  • 2022-01-15
猜你喜欢
  • 2022-02-25
  • 2021-12-12
  • 2021-08-24
  • 2021-08-22
  • 2021-07-08
  • 2021-12-12
  • 2021-11-19
相关资源
相似解决方案