有没有人知道一种方法或工具如何在CSS中使用继承而不依赖于元素的结构?例:
.bg_red {
background: red;
}
.bold {
font-weight: bold;
}
.bg_red_and_bold {
//this class should inherit all the properties of the above two classes
}
Run Code Online (Sandbox Code Playgroud)
我希望很清楚我的意思......
谢谢