CSS层叠样式表:用于设置网页的静态样式
CSS 概述
CSS的作用
. 查看如下代码
<body bgcolor="silver" text="blue">
<font color="red"></font>
<h2>h2 text</h2>
Some text here.
</body>
//各元素对于样式的属性定义各不相同!
CSS的作用
<html>
<head>
<style type="text/css">
body{
background-color:silver;
color:blue;
}
h2{
background-color:orange;
color:red;
}
</style>
</head>
<body>
<h2>
h2 text
</h2>
Some text here.
</body>
</html>