<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> *{ margin: 0; padding: 0; } a{ text-decoration: none; } /*大体div*/ .big{ width: 300px; height: 310px; margin: 100px auto; } /*顶部*/ .top{ text-align: center; height: 25px; line-height: 25px; border-bottom: 2px solid darkred; } h4{ float: left; width: 90px; } .top a{ float: left; width: 50px; color: black; display: block; margin-left: 2px; font-size: 14px; background-color: gainsboro; } .top a:hover{ background-color: darkred; color: white; } /*news 新闻*/ .new{ height: 280px; } .new ul{ background: url(bg.gif) no-repeat 5px 9px; padding-left: 28px; } .new li{ font-size: 13px; list-style: none; line-height:29px; } .new li a{ color: gray; display: block; width:270px; height:29px ; } .new li a:hover{ color: #8B0000; color: white; background-color:darkred ; } /*more 更多*/ p{ text-align: right; font-size: 13px; } p a{ color: gray; } </style> </head> <body> <div class="big"> <div class="top"> <h4>新闻排行</h4><a href="#">国内</a><a href="#">国内</a><a href="#">国内</a><a href="#">国内</a> </div> <div class="new"> <ul> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> <li><a href="#">广州传智播客php基础班23期 312室</a></li> </ul> </div> <p><a href="#">...more</a></p> </div> </body> </html>