本系列博客汇总在这里:JavaWeb_CSS 汇总
目录
示例
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>www.weiyuxuan.com</title>
</head>
<style type="text/css">
body
{
background-color: activecaption;
font-family: 黑体;
font-size: 15px;
}
ul
{
list-style-type: none;/*去掉li前面的点*/
}
li
{
margin-bottom: 10px;
background: url(wyx.ico) no-repeat;
padding-left: 50px;
padding-top:5px;
height: 30px;
}
</style>
<body>
<h1> 列表样式 </h1>
<hr/>
<ul>
<li>三国</li>
<li>水浒</li>
<li>红楼梦</li>
<li>西游记</li>
</ul>
</body>
</html>
如有错误,欢迎指正!