type =“text / css”之间的差异和type =" text / stylesheet" ;? [英] Difference between type="text/css" and type="text/stylesheet"?
本文介绍了type =“text / css”之间的差异和type =" text / stylesheet" ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<link rel="stylesheet" href="/css/test.css" type="text/css"/>
和
<link rel="stylesheet" href="/css/test.css" type="text/stylesheet"/>
在不同的浏览器中,风格似乎有些不同,但我不能指向任何具体 - 在使用这些之间有什么真正的区别吗?
There appear to be some differences to the style in different browsers, but I can't really point to anything specific - is there any real difference between using either of these?
推荐答案
text / stylesheet
是 / strong>为链接
元素。
您应该使用 text / css
。
You should use text/css
.
您可能会发现浏览器有所不同,因为有些浏览器已考虑到人们可能不正确地使用 type = / stylesheet
而不是 type =text / css
。
You are probably seeing a difference in browsers because some browsers have taken into account people might incorrectly use type="text/stylesheet"
instead of type="text/css"
.
这篇关于type =“text / css”之间的差异和type =" text / stylesheet" ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文