AI编程助手
AI免费问答

CSS仿迅雷看看蓝色导航的方法

高洛峰   2017-03-08 14:55   3131浏览 原创

先看看css绘制的经典蓝色导航效果:

CSS仿迅雷看看蓝色导航的方法

用到的素材:

CSS仿迅雷看看蓝色导航的方法

代码:


<meta><title>最新迅雷看看导航</title><style>
body { margin:0px; font-size:13px; font-family:Verdana, Arial, Helvetica, sans-serif }   
#nav { position:relative; width:964px; height:95px; z-index:1px; margin:10px auto; background:url(kkindex_nav.png) }   
#navli { position:absolute; width:580px; height:32px; left:35px; top:-2px; }   
ul { margin:0; }   
.dh li { width:72px; height:30px; float:left; position:relative; line-height:30px; zoom:1; list-style:none; text-align:center; background:url(kkindex_nav.png) no-repeat; background-position:-125px -99px }   
.dh li a { color:#000000; text-decoration:none }   
.dh li a:hover { zoom:1; color:#ffffff; text-decoration:none; font-weight:bold; background:url(kkindex_nav.png) no-repeat 0 -95px; width:72px; height:30px; }   
.dhhome { background:url(kkindex_nav.png) no-repeat 0 -95px; width:72px; height:30px; zoom:1; color:#ffffff !important; font-weight:bold }   
.dhright { position:absolute; width:280px; height:31px; left:680px; top:-2px; text-align:center; line-height:30px; }   
.dhrightimg { position:absolute; right:-4px; top:10px; background:url(kkindex_nav.png) no-repeat; background-position:-954px -115px; padding-right:15px; width:10px; height:10px; }   
</style><p>
  </p><p>
    </p>
     

 大片 - 首播 - 新片 - 客服论坛 - 更多        

  

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持PHP中文网。

前端入门到VUE实战笔记:立即学习
>在学习笔记中,你将探索 前端 的入门与实战技巧!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。