【发布时间】:2015-07-10 15:45:05
【问题描述】:
目前正在构建 Shopify 主题,并且我正在使用 Gridset 进行网格布局。我的问题是,对于 IE 8/9,它需要使用一些 CSS @import,但它们似乎无法正常工作,因为网格仅在这些版本上中断。
对于标准网站,您只需执行以下操作
@import url("gridset-ie-a-spans1.css") only screen and (min-width:1025px);
我已尝试通过执行以下操作来适应 Shopify,但没有成功:
@import url("{{ 'gridset-ie-a-spans1.css' | asset_url }}") only screen and (min-width:1025px);
还有
@import url("{{ 'gridset-ie-a-spans1.css' | asset_url | stylesheet_tag }}") only screen and (min-width:1025px);
都没有用!
有谁知道如何成功地让@imports 工作,或经过验证的替代方案?
任何帮助将不胜感激!
【问题讨论】: