开发者

@import doesn't work when suffix isn't .css?

This works:

@import   "foo.css" 
开发者_StackOverflow

This fails:

@import   "foo.cssabc" 

Any reason for this?


The filename is irrelevant.

You just need to make sure your server is returning Content-Type: text/css for both.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜