我有一个用于文章和
HTML5标签的类.
在家里:
在项目页面上:
…
具有类exit的每个元素都在里面有一个数字HTML5元素.使用Less,我使用此代码来执行我想要的操作.
article.exit{width:260px; height:200px; top:315px; left:505px;
figure{background-color:@exit-bg;}
.box:hover{.perspective-box(se, 10, @exit-shadow);}
}
section.exit{
.box:hover{.perspective-box(nw, 10, @exit-shadow);}
.intro figcaption:hover{background:@exit-hover;}
}
但我必须指明它是文章还是部分!我有很多这样的课程,这有点烦人……
做这样的事情是否有解决方案?会很酷……
.exit{
&article{
width:260px; height:200px; top:315px; left:505px;
figure{background-color:@exit-bg;}
.box:hover{.perspective-box(se, 10, @exit-shadow);}
}
§ion{
.box:hover{.perspective-box(nw, 10, @exit-shadow);}
.intro figcaption:hover{background:@exit-hover;}
}
}