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

WBOY
Release: 2016-06-24 11:52:22
Original
1367 people have browsed it

<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>
Copy after login

div.blue {color:blue}div.red {color:red}
Copy after login


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


Reply to discussion (solution)



ref is changed to rel

rel is the abbreviation of relation

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template