Home  >  Article  >  Web Front-end  >  Why can't I see the effect? _html/css_WEB-ITnose

Why can't I see the effect? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:52:221363browse

<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}


The html file and css are in the same directory, but the text color is always black. What went wrong?


Reply to discussion (solution)

3e77c89c06f1991568994d6a4c656c66

ref is changed to rel

rel is the abbreviation of relation

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn