//平铺背景
<style type="text/css">
body
{
background-image:url(/i/eg_background.jpg)}
</style>
//设置某一部分背景
.11c
{
background-image:
url(3u.gif);
background-repeat: repeat-x
}
//不错的样式 很常用
<html>
<head>
<style type="text/css">
body {background-color: yellow}
h1 {background-color: #00ff00}
h2 {background-color: transparent}
p {background-color: rgb(250,0,255)}
</style>
</head>
<body>
<h1>This is header 1</h1>
<h2>This is header 2</h2>
<p>This is a paragraph</p>
</body>
</html>
//水平重复背景
body
{
background-image:
url(/i/eg_background3.jpg);
background-repeat: repeat-x
}
// 很常用的样式
<html>
<head>
<style type="text/css">
a.one:link {color: #ff0000}
a.one:visited {color: #0000ff}
a.one:hover {color: #ffcc00}
a.two:link {color: #ff0000}
a.two:visited {color: #0000ff}
a.two:hover {font-size: 150%}
a.three:link {color: #ff0000}
a.three:visited {color: #0000ff}
a.three:hover {background: #66ff66}
a.four:link {color: #ff0000}
a.four:visited {color: #0000ff}
a.four:hover {font-family: monospace}
a.five:link {color: #ff0000; text-decoration: none}
a.five:visited {color: #0000ff; text-decoration: none}
a.five:hover {text-decoration: underline}
</style>
</head>
<body>
<p>Mouse over the links to see them change layout.</p>
<p><b><a class="one" href="/index.html" target="_blank">This link changes color</a></b></p>
<p><b><a class="two" href="/index.html" target="_blank">This link changes font-size</a></b></p>
<p><b><a class="three" href="/index.html" target="_blank">This link changes background-color</a></b></p>
<p><b><a class="four" href="/index.html" target="_blank">This link changes font-family</a></b></p>
<p><b><a class="five" href="/index.html" target="_blank">This link changes text-decoration</a></b></p>
</body>
</html>