type =“text / css”之间的差异和type =" text / stylesheet&quot ;? [英] Difference between type="text/css" and type="text/stylesheet"?

查看:290
本文介绍了type =“text / css”之间的差异和type =" text / stylesheet&quot ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<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 =&quot; text / stylesheet&quot ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆