开发者

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

开发者 https://www.devze.com 2023-01-01 01:22 出处:网络
This works: @import\"foo.css\" 开发者_StackOverflow This fails: @import\"foo.cssabc\" Any reason for this?The filename is irrelevant.

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

精彩评论

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