<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>新闻排行</title>
<style>
*{margin: 0;padding: 0;}
li{list-style: none;}
body{font-family: 微软雅黑;}
.box{
height: 300px;
width: 470px;
margin: 100px auto;
background-color: #fff;
}
/*顶部导航栏*/
.box .header{
width: 100%;
height: 32px;
line-height: 32px;
background-color: #fff;
border-bottom: 5px solid red;/*设置导航栏下的红线*/
}
.box .header ul li{
float: left;
width: 45px;
padding-left: 15px;
padding-right: 15px;
text-align: center;
background-color: #ccc;
border-left: 2px solid #F1F1F1;/*设置导航栏左边边框线*/
}
.box .header ul li a:link,.box .header ul li a:visited{
text-decoration: none;
}
.box .header ul li a:hover{
color: gold;
}
.box .header .news{
width: 80px;
padding-left: 30px;
padding-right: 20px;
text-align: center;
border: none;
background-color: #fff;
font-weight: bold;
}
.box .header .guonei{
background-color: #f00;/*设置国内两个字的背景颜色*/
border-right: 1px solid #F1F1F1;
}
.box .header .guonei a:link,.box .header .guonei a:visited{
text-decoration: none;
color: #fff;
}
.box .header .guonei a:hover{
color:gold;
}
/*新闻版块*/
.box .content{
color: #C3C3C3;/*设置新闻区域文本颜色*/
}
.box .content ul{
padding-left: 50px;
width: 100%;
height: 260px;
background: url(bg.gif) no-repeat 20px 5px;/*设置列表前面的图片*/
}
.box .content ul a:link,.box .content ul a:visited{
text-decoration:none;
color: #C3C3C3;
}
.box .content ul a:hover{
color: #333;
}
.box .content ul li{
margin-top: 3px;
height: 23px;
line-height: 23x;
}
</style>
</head>
<body>
<div class="box">
<div class="header">
<ul>
<li class="news"><a href="#">新闻排行</a></li>
<li class="guonei"><a href="#">国内</a></li>
<li><a href="#">国际</a></li>
<li><a href="#">社会</a></li>
<li><a href="#">网评</a></li>
</ul>
</div>
<div style="clear: both;"></div>
<div class="content">
<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>
<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>
</div>
</body>
</html>

最新文章

  1. C#语法糖大汇总
  2. jquery中ajax返回值无法传递到上层函数
  3. React 点击按钮显示div与隐藏div,并给div传children
  4. UDP穿透NAT原理解析
  5. 楼市、股市后下一届ZF将用什么去做超发货币的蓄水池(
  6. MongoDB安装、管理工具、操作
  7. Win7+VMware Workstation环境下的CentOS-Linux网络连接设置
  8. php实现无限级树型菜单(函数递归算法)
  9. 工作中常用的QTP操作Excel函数
  10. (七)boost库之单例类
  11. zabbix 实现curl 显示器
  12. .NET跨平台之旅:博问站点迁移至ASP.NET Core on Linux并发布上线
  13. spark能传递外部命名参数给main函数吗?
  14. springDatasolr 排序
  15. linux下vi或vim操作Found a swap file by the name的原因及解决方法
  16. docker 网络配置
  17. 29.如何不用 transition 和 animation 也能做网页动画
  18. 获取display:none的元素的宽度和高度
  19. M451例程讲解之按键
  20. LeetCode题目_Reverse Integer

热门文章

  1. 【OpenCV】视频取坐标
  2. Norflash控制器的Verilog建模之一
  3. backprop示例
  4. socket 网络编程
  5. git 查看远程分支、本地分支、删除本地分支【转】
  6. php获取当月天数及当月第一天及最后一天、上月第一天及最后一天实现方法
  7. PostgreSQL笔记
  8. Sublime Text 3 使用
  9. 仿微软控件的html元素
  10. 一些对数学领域及数学研究的个人看法(转载自博士论坛wcboy)