css插入样式表一共有三种方式,分别为外部样式表,内部样式表,内联样式表。
<head>
<link rel=””stylesheet” type=”text/css” herf=”mystyle.css”>
</head>
内部样式表:
<head>
<style type=”text/css”
hr {color: sienna;} p {margin-left: 20px;} body {background-image: url("images/back40.gif");}
</style>
</head>
内联样式表:
<p style
="color: sienna; margin-left: 20px">
This is a paragraph
</p>