[英]External CSS style sheet NOT working.
<head>
<title>
My Site
</title>
<style>
<link rel="stylesheet" type="text/css" href="design.css">
</style>
</head>
I cannot figure out how to fix it. 我无法弄清楚如何解决它。 My page comes up completely unaffected by the style sheet.
我的页面完全不受样式表的影响。
The link
should not be placed within the style
tag. 该
link
不应放在style
标记内。 Correct example: 正确的例子:
<head>
<title>
My Site
</title>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
<head>
<title>
My Site
</title>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
Do not use style when you want to link external style sheets, Use style only when you have to write the CSS in the HTML document itself. 如果要链接外部样式表,请不要使用样式,仅在必须在HTML文档本身中编写CSS时才使用样式。
For more info : http://www.w3schools.com/css/css_howto.asp 欲了解更多信息: http : //www.w3schools.com/css/css_howto.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.