<!DOCTYPE html>
<html>
<head>
<!--网页中小窗口的代码1.0今天学到这里。每个标签都设置了自己的hight和line-height-->
<meta charset="utf-8">
<title>document</title>
<style type="text/css">
body{
font-size: 12px;
color: #f60;
}
.box{
height: 230px;
width: 400px;
border: 1px solid #000;
margin: auto;
background-color: #f111;
}
.box h2{
line-height: 35px;
height: 35px;
border: 1px solid #ccc;
color: red;
}
.box ul li{
list-style: none;
height: 30px;
line-height: 30px;
border: 1px solid #ccc;
/*list-style-image: url(/Users/hcl/Desktop/html_trying/ssr/11.png);*/
background-image: url(11.png);
background-repeat: no-repeat;
background-position: left center;
padding-left: 23px;
}
a:link,a:visited{
text-decoration: none;
color: #444;
}
a:hover{
color: #f00;
}
</style>
</head>
<body>
<div class="box">
<h2>新闻列表</h2>
<ul>
<li><a href="#">新闻标题</a></li>
<li><a href="#">新闻标题</a></li>
<li><a href="#">新闻标题</a></li>
<li><a href="#">新闻标题</a></li>
<li><a href="#">新闻标题</a></li>
</ul>
</div>
</body>
</html>