开发者

Assign css class to another css class

开发者 https://www.devze.com 2023-03-23 22:09 出处:网络
Is it possible to reuse classes like that in css: 开发者_JAVA技巧 .aelement {display:block;....} .aelementhover {color:#fff;....}

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

精彩评论

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