在CSS中可以定义一个引用其他css类的类吗?
示例
main.css
// this is just a pseudo code for the lack of the proper command if it exists
.a {
#ref: '.b, .c'
}
plugin.css
.b {
color: red;
}
.c {
font-size: 1em;
}
index.html导入main.css和plugin.css
<div class="a">Hello</div> <!-- a should b
if(prev_clicked)
{
$("#accordion li a.category").css('background-image', 'url("img/off_all_channel.png")');
$("#accordion li a.comment").css('background-image', 'url("img/on_all_online.png")');