文件的内容像下面这样:
@CHARSET "UTF-8"
* {
border: 0px
margin: 0px
padding: 0px
}
body {
background-color: white
font-size: 12px
}
/* comment */
#all {
width: 100%
background-image: url(../images/2e_bg.jpg)
height: 636px
}
#wrap {
position: absolute
width: 980px
left: 50%
margin-left: -490px
overflow: hidden
}
#left {
width: 230px
float: left
}
然后就可以在网页内加入了
使用:<link rel="stylesheet" type="text/css" href="css/style.css">
注意路径。
你还可以使用:
<style type="text/css">
<!--
@import url("css/style.css")
-->
</style>
这两者写在<head></head>内即可。
希望对你有帮助,再见。
http://hi.baidu.com/35567507/blog/item/fd23b3096453d3246b60fb08.html去我空间看这个文章,下面的黄色字里有没一行的CSS代码的意思,最下面有你想要的内容.