1内联式样式表
例如:
<p style="font-size:50px;color:red">我们</p>
2嵌入式样式表
例如:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
p{
font-size:50px;
color:#0F0;
background-color:#00C;
text-decoration:underline;
}
</style>
</head>
<body>
<p>他们</p>
3外部样式表
1.html
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="/2.css" />
</head>
<body>
<p>你们</p>
</body>
2.css
p{
font-size:50px;
color:#0F0;
background-color:#00C;
text-decoration:underline
}