文章列表 样式: 代码:
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.article {
width: 280px;
height: 210px;
border: 1px solid #cccccc;
padding-left: 10px;
padding-right: 10px;
padding-top: 15px;
margin: 50px;
}
.article h4 {
font-size: 20px;
border-bottom: 1px solid #CCCCCC;
padding-bottom: 5px;
}
.article li{
border-bottom: 1px dashed #CCCCCC;
height: 1.875rem;
line-height: 30px;
list-style-type: none;
}
.article li a{
color: #4f4f4f;
text-decoration: none;
font: 14px "微软雅黑";
padding-left: 30px;
}
.article li a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="article">
<h4 class="title">最新文章/New Articles</h4>
<ul>
<li>
<a href="#">北京招聘网页设计,平面设计,php</a>
</li>
<li>
<a href="#">体验javascript的魅力</a>
</li>
<li>
<a href="#">jquery世界来临</a>
</li>
<li>
<a href="#">网页设计师的梦想</a>
</li>
<li>
<a href="#">jquery中的链式编程是什么</a>
</li>
</ul>
</div>
</body>
</html>
|