html head for css tags之间的有效差异?:@import url vs. link href

html head for css tags之间的有效差异?:@import url vs. link href,第1张

概述两者之间是否存在有效差异? <style type="text/css">@import url(/css/layout.css) all;</style> 和 <link href="/css/layout.css" type="text/css" static="all" rel="stylesheet"> 浏览器的行为有何不同? 从w3c等推荐什么? 有几个原因你应该使用< link>而不是 两者之间是否存在有效差异?

<style type="text/CSS">@import url(/CSS/layout.CSS) all;</style>

<link href="/CSS/layout.CSS" type="text/CSS" static="all" rel="stylesheet">

浏览器的行为有何不同?

从w3c等推荐什么?

解决方法 有几个原因你应该使用< link>而不是@import,其中2个是:

>使用@import可能会导致下载方式出现意外排序.
> @import可能会导致blank white screen problem.

有关网站性能的更多信息,请参阅High Performance Web Sites.

总结

以上是内存溢出为你收集整理的html head for css tags之间的有效差异?:@import url vs. link href全部内容,希望文章能够帮你解决html head for css tags之间的有效差异?:@import url vs. link href所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1078500.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存