开发者

CSS stylesheet path form limitation?

开发者 https://www.devze.com 2023-01-30 09:43 出处:网络
<开发者_运维问答;link href=\"http://example.com/example.php?id=0&grab=http%3A%2F%2Fwww.example.org%2Fcss%2Fmaster.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" /> - is that URL all

<开发者_运维问答;link href="http://example.com/example.php?id=0&grab=http%3A%2F%2Fwww.example.org%2Fcss%2Fmaster.css" rel="stylesheet" type="text/css" media="all" /> - is that URL allowed? Any MIME type requirements?


is that URL allowed?

I don't see why not: Standard rules for valid URLs apply.

Any MIME type requirements?

It should emit content-type: text/css, otherwise Firefox won't recognize the style sheet even if you specify it in the link tag.

0

精彩评论

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