【发布时间】:2014-04-15 20:25:19
【问题描述】:
问题
我使用 Paul Irish 的 IE 条件注释技巧来定位不同版本的 IE。在 sass 中,当嵌套在另一个类中时,我如何应用这些类中的一个。
.container{
// I need to put a ie8 specific style here which is a .ie8 class applied to the body
}
如果可能的话,我想避免这样做(能够将属性保持在一起很好):
.container{}
.ie8{
.container{}
}
这可能吗?
【问题讨论】:
-
你能发布你期望输出的 CSS 的样子吗?这将有助于使事情更加清晰。