嵌套CSS样式? [英] Nested CSS styles?
本文介绍了嵌套CSS样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这样可能吗?
.imgbox:hover {.ui-resizable-se {/ * some style * /}}
还是一个概念上的等同?
基本上,只有当某个类的元素被悬停时,那个类中的一些元素应该改变一些风格。
解决方案
您可以这样做:
.imgbox:hover .ui-resizable-se {/ * some style * /}
同样可以由LESS或SASS生成。 >
Is something like this possible?
.imgbox:hover{ .ui-resizable-se { /*some style */ } }
Or a conceptual equivalent? Basically, only when an element of a certain class is hovered over, then some element within that class should change some style.
解决方案
You can do this:
.imgbox:hover .ui-resizable-se { /*some style */ }
The same can be generated by LESS or SASS.
这篇关于嵌套CSS样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文