如何添加背景呢?
<body style=" background-color:#666;"> .... </body>
对整个body添加背景色
<h1 style=" background-color:#666;"> ....</h1> <h2 style=" background-color:#333;"> ....</h2>
分别对h1和h2添加背景色。这是行内样式的
<html>
<head>
<style type="text/css">
body{background-color:#666;}
h1{background-color:#666;}
h2{background-color:#666;}
</style>
</head>
<body>
.....
</body>
</html>嵌入式的添加样式。还有一种是外部样式表的引用。
优先级 行内样式>嵌入式样式>外部样式表
<body style=" background-color:#666;"> .... </body> background是背景色的意思 后面可选择颜色
小白一枚,刚把html+css过了一边,不知道哪里有适合的网页模版模仿一下下练练手,
在css样式中添加,好像是bacolor