Css 学习

级联样式表(Cascading Style Sheet)简称“CSS”,通常又称为“风格样式表(Style Sheet)

<html>
<head>
<style>
A {color:red;}
P {background-color: blue;color:white}
</style>
</head>
<body>

<a href= 'file:///C:/Users/00146476/Desktop/test/test.html'>testLink</a>
<p>Notice Backgroud Color</p>

</body>
</style>
</html>

===================================与上面等效=====================================

<html>
<head>
<link href="test.css" type="text/css" rel="stylesheet"/>
<!-- <style>
A {color:red;}
P {background-color: blue;color:white}
</style> -->
</head>
<body>

<a href= 'file:///C:/Users/00146476/Desktop/test/test.html'>testLink</a>
<p>Notice Backgroud Color</p>

</body>
</style>
</html>

-----------------------------test.css文件--------------------------------

<style>
A {color:red;}
P {background-color: blue;color:white}
</style>

 

 

在线手册: http://css.doyoe.com/

 

你可能感兴趣的:(css)