最佳答案
我想知道是否有必要在<link rel="stylesheet" href=...>上使用<link rel="stylesheet" type="text/css" href=...>。rel="stylesheet"标记了它是一个样式表的信息——所以就我而言,text/css实际上没有添加任何东西。
HTML使用的唯一样式表格式是CSS,那么text/css对浏览器说了什么?一些网站似乎添加了type="text/css"属性(http://www.jquery.com/),而其他网站则没有(http://www.youtube.com/)。
那么,type="text/css"在<link rel="stylesheet">元素中有什么用途,是否有必要包含它?