代码:<link href="111.css" rel="stylesheet" type="textcss" > 解释一下 这个代码是什么意思

html-css09

代码:<link href="111.css" rel="stylesheet" type="textcss" > 解释一下 这个代码是什么意思,第1张

href="111.css": 引用样式文件的路径。

rel="stylesheet":rel是relationship的英文缩写stylesheet中style是样式的意思,sheet是表格之意,总起来是样式表的意思rel="stylesheet" 描述了当前页面与href所指定文档的关系.即说明的是,href连接的文档是一个新式表。

type="text/css":类型为文本。

样式导入的路径不对吧。

<link rel="stylesheet" href="/css/layout.css" type="text/css">

改成

<link rel="stylesheet" href="../css/layout.css" type="text/css">

少了两点