【发布时间】:2014-03-11 05:52:32
【问题描述】:
几天前我刚开始使用 Compass 的精灵生成器,发现我的精灵没有出现在 IE8 中。我认为我的问题可以追溯到之前报告的问题:compass sprite is not working in ie8 and ie7
Santosh 指出,当使用 :not 之类的伪类时,IE8 会中断。
我可以看到我的选择器可能会损坏,因为 Compass 在选择器中包含 :checked 和 :before 伪类(来自 icons/global/*.png):
input[type="checkbox"]:checked + .btn-checkbox:before,
input[type="checkbox"].checked + .btn-checkbox:before,
input[type="radio"]:checked + .btn-checkbox:before,
input[type="radio"].checked + .btn-checkbox:before,
.segmented-checkbox .btn- checkbox.selected:before
{
background: url(/assets/rp-icons/global-s67c66a3554.png) no-repeat;
}
我的问题是如何更改自动生成的选择器或将其拆分,以便整个事情不会在 IE8 中中断?
这里也提到了这个问题,但是解决方法不是很清楚: https://github.com/chriseppstein/compass/issues/1193
【问题讨论】:
标签: compass-sass sprite