开发者

Assign css class to another css class

Is it possible to reuse classes like that in css:

开发者_JAVA技巧
.aelement {display:block;....}
.aelementhover {color:#fff;....}
.remove a {
        //assign values from class .aelement here
}

.remove a:hover {
        //assign values from class .aelementhover here
}


Not with vanilla CSS but you can do that sort of thing with less or sass

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜