效果预览:http://hovertree.com/code/texiao/ks63r6aq.htm

 <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>超漂亮的HTML导航菜单CSS代码 - 何问起</title>
<style>
#top {
display: block;
text-align: left;
height: 105px;
position: relative;
z-index: 0;
} .m {
margin: 0 auto;
width: 970px;
} body {
font-size: 12px;
} a {
color: #333;
text-decoration: none;
} a:link {
text-decoration: none;
}
/* Download by http://hovertree.com*/
a.blue:link, a.blue:visited {
color: #014cc9;
text-decoration: none;
} a.blue:hover, a.blue:active {
color: #014cc9;
text-decoration: underline;
} a.org:link, a.org:visited {
color: #ff4e00;
text-decoration: none;
} a:hover, a:active, a.org:hover, a.org:active {
color: #ff4e00;
text-decoration: underline;
} #navpart {
background: url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) repeat-x center top;
height: 105px;
width: 950px;
z-index: 0;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
clear: both;
position: relative;
} #navpart .sideleft {
background: url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat left bottom;
float: left;
height: 105px;
width: 6px;
} #navpart .sideright {
background: url(http://hovertree.com/hvtimg/bjafjb/6hcuxj1x.gif) no-repeat right bottom;
float: right;
height: 105px;
width: 6px;
} #navmenubar {
height: 32px;
float: left;
display: inline;
margin: 0 -6px;
width: 100%;
position: relative;
z-index: 3;
top: 0;
} #hot {
background: url(http://hovertree.com/hvtimg/201508/7qmwfe9p.png) no-repeat left top;
height: 21px;
width: 19px;
position: absolute;
top: -5px;
right: 2px;
z-index: 666;
background:black;
} #navmenubar .sideleft {
background: url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat left bottom;
float: left;
height: 32px;
width: 6px;
display: inline;
margin: 0 0 0 8px;
} #navmenubar .sideright {
background: url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) no-repeat right bottom;
float: left;
height: 32px;
width: 6px;
display: inline;
margin: 0 4px 0 -2px;
}
/* NAVMENU */
#navmenubar .navmenu {
background: url(http://hovertree.com/hvtimg/bjafjb/ay73nxk5.gif) repeat-x center top;
height: 32px;
padding: 0;
margin: 0;
float: left;
display: inline;
} #navmenubar .navmenu li {
float: left;
white-space: nowrap;
margin: 0px;
padding: 0px;
display: inline;
} #navmenubar .navmenu li a {
background: url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 0;
width: 80px;
padding: 7px 2px 5px 0;
float: left;
line-height: 20px;
height: 20px;
text-align: center;
} #navmenubar .navmenu li a:hover {
background-position: 0 -32px;
color: #602800;
text-decoration: none;
padding: 8px 2px 4px 0;
} #navmenubar .navmenu .current a, #navmenubar .navmenu .current a:hover {
background: url(http://hovertree.com/hvtimg/bjafjb/d46iuj2w.gif) no-repeat 0 -64px;
font-weight: 600;
color: #FFF;
font-size: 14px;
padding: 7px 2px 5px 0;
} #top #navpart .content {
margin-top: 40px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
width: 900px;
height: auto;
color: white;
} #top #navpart .content a {
color: white;
display: inline-block;
margin-top: 0px;
height: 30px;
border: 0px solid white;
line-height: 30px;
padding: 10px;
} .clear {
clear: both;
display: block;
font: 0px/0 sans-serif;
height: 0px;
overflow: hidden;
}
</style> </head>
<body>
<div id="top" class="m">
<div id="navpart">
<div class="sideleft"></div>
<div class="sideright"></div>
<!--NavMenu-->
<div id="navmenubar">
<div class="sideleft"></div>
<ul class="navmenu">
<li class="current"><a href="http://hovertree.com" target="_top" title="首页">何问起</a></li>
<li><a href="http://hovertree.com/"><span>编程资源</span></a></li>
<li><a href="http://hovertree.com"><span>高质量源码</span></a></li>
</ul>
<div class="sideright"></div>
<div class="sideleft"></div>
<ul class="navmenu">
<li><a href="http://tool.hovertree.com"><span>工具</span></a></li>
<li><a href="http://hovertree.com/code/"><span>代码</span></a></li>
<li><a href="http://keleyi.com"><span>jQuery教程</span></a></li>
<li><a href="http://hovertree.com/tiku/"><span>在线题库</span></a></li>
</ul>
<div class="sideright"></div>
<div>
<div class="content">
<a href="http://hovertree.com/" target="_blank">特效代码</a> <a href="http://hovertree.com/ziyuan/js/" target="_blank">JS运算符优先级</a>
<a href="http://hovertree.com/code/texiao/ks63r6aq.htm" target="_blank">特效代码</a> <a href="http://hovertree.com/" target="_blank">特效代码</a> <a href="http://hovertree.com/" target="_blank">特效代码</a><a href="http://hovertree.com/hvtart/bjae/e4pya1x0.htm" target="_blank">.NET正则表达式</a>
<a href="http://hovertree.com/" target="_blank">特效代码</a> <a href="keleyi.com/ziliao/googlejavascriptstyle.htm" target="_blank">谷歌JS风格</a> <a href="http://hovertree.com/" target="_blank">特效代码</a> <a href="http://hovertree.com/" target="_blank">特效代码</a> <a href="http://hovertree.com/h/bjaf/nebj8df9.htm" target="_blank">js实现异步循环</a> </div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</body>
</html>

网页特效:http://www.cnblogs.com/roucheng/p/texiao.html

HTML+CSS代码橙色导航菜单的更多相关文章

  1. 纯css实现京东导航菜单

    纯CSS代码实现导航菜单,推荐在chrome预览! 预览请点击这里:mygithub <!doctype html> <html lang="en"> &l ...

  2. 用css实现三级导航菜单

    主要使用css的hover伪类来实现该功能. 主要思路:先搭出三级菜单的框架,然后使用css的:hover来实现! 对li添加类selected,对该类添加position:relative属性,然后 ...

  3. 简单的CSS 下拉导航菜单实现代码

    <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <met ...

  4. 纯css实现二级导航菜单效果,通过简单的鼠标事件操作页面元素样式变换实现二级导航菜单的功能,非常简单实用,

    HTML代码如下 <!-- 头部导航栏开始--><div id="nav"><dl class="sy"><dt> ...

  5. 纯CSS下拉导航菜单

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="h ...

  6. 利用Html.css OPPO手机导航菜单的制作解析

    <body> <div id="top" class="auto"> <div class="nav"> ...

  7. 38 个免费开源的 CSS 下拉导航菜单

    http://www.oschina.net/news/51624/38-open-source-css-dropdown-menus

  8. 纯CSS 3D翻转一个面(翻转导航菜单 立方体)

    在做练习的时候学到css的翻转导航菜单,原代码有点让人头疼,通过对其css的参数一点点研究了其实现过程. 这里推荐大家研究这个3D翻转动画的代码. 我的github:swarz,欢迎给老弟我++星星 ...

  9. 用CSS做导航菜单的4个理由

    导航结构在网站设计中是起到决定性作用的,导航菜单/栏常常通过颜色.排版.形状和一些图片来帮助网站创造更好的视觉和感受,它是网页设计的关键元素.虽然网站导航菜单的外观是网页设计中关系到整个设计成败与否的 ...

随机推荐

  1. ARM的常数表达式

    ARM的常数表达式   如果说Intel指令中的立即数,相信大家都很熟悉.类似的,Arm指令中的“立即数”就是常数表达式.之所以称为常数表达式,而不称为立即数是有原因的. Intel指令属于CISC指 ...

  2. MySQL MVCC(多版本并发控制)

    概述 为了提高并发MySQL加入了多版本并发控制,它把旧版本记录保存在了共享表空间(undolog),当事务提交之后将重做日志写入磁盘(前提innodb_flush_log_at_trx_commit ...

  3. [nRF51822] 10、基础实验代码解析大全 · 实验15 - RTC

    一.实验内容: 配置NRF51822 的RTC0 的TICK 频率为8Hz,COMPARE0 匹配事件触发周期为3 秒,并使能了TICK 和COMPARE0 中断. TICK 中断中驱动指示灯D1 翻 ...

  4. TroubleShooting笔记--快照进程sp_replupdateschema和索引重建发生冲突

    今天早上服务器出现大面积的阻塞,上去排查blocking,最后大概确定的问题是: rebuild index job(243) --->blocked--->sp_replupdatesc ...

  5. 60分钟Python快速学习(给发哥一个交代)

    60分钟Python快速学习 之前和同事谈到Python,每次下班后跑步都是在听他说,例如Python属于“胶水语言啦”,属于“解释型语言啦!”,是“面向对象的语言啦!”,另外没有数据类型,逻辑全靠空 ...

  6. JS实战 · 复选框全选操作

    思路: 1.获取被选中checkbox,通过checked属性的状态完成: 2.获取被选中的checkbox的value值: 3.求所有value的和sum: 4.定义span区域存储和sum:   ...

  7. FPGrowth算法总结复习

    摘要: 1.算法概述 2.算法推导 3.算法特性及优缺点 4.注意事项 5.实现和具体例子 6.适用场合 内容: 1.算法概述 关联规则(associatio rules):从大规模数据集中寻找物品建 ...

  8. 详解 JavaScript的 call() 和 apply()

    定义 ECMAScript规范为所有函数都包含两个方法(这两个方法非继承而来), call 和 apply .这两个函数都是在特定的作用域中调用函数,能改变函数的作用域,实际上是改变函数体内 this ...

  9. json、javaBean、xml互转的几种工具介绍

    json.javaBean.xml互转的几种工具介绍 转载至:http://blog.csdn.net/sdyy321/article/details/7024236 工作中经常要用到Json.Jav ...

  10. 浅谈HTML5单页面架构(一)——requirejs + angular + angular-route

    心血来潮,打算结合实际开发的经验,浅谈一下HTML5单页面App或网页的架构. 众所周知,现在移动Webapp越来越多,例如天猫.京东.国美这些都是很好的例子.而在Webapp中,又要数单页面架构体验 ...