首页  >  文章  >  web前端  >  为什么总是看不到效果?_html/css_WEB-ITnose

为什么总是看不到效果?_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 11:52:221332浏览

<html>    <head>        <title>This is a test!</title>		<link ref="stylesheet" type="text/css" href="firstcss.css" />    </head>    <body>				<div class="blue">	What's happen?</div>				<div class="red">   You are so beautiful!!!</div>    </body></html>

div.blue {color:blue}div.red {color:red}


html文件和css在同一个目录下面,但字的颜色总是黑色的。哪里错了?


回复讨论(解决方案)



ref  改为  rel

rel    是   relation的 缩写

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn