爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
竖向的二级网站导航菜单代码特效
竖向的二级网站导航菜单代码特效
日期:2014-05-18 浏览次数:20146 次
以下是程序代码
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>dropdown˵--A CROSS BROWSER DROP DOWN CASCADING VALIDATING MENU</title> <style type="text/css"> /* common styling */ /* set up the overall width of the menu div, the font and the margins */ .menu { font-family: arial, sans-serif; width:750px; margin:0; margin:50px 0; } /* remove the bullets and set the margin and padding to zero for the unordered list */ .menu ul { padding:0; margin:0; list-style-type: none; } /* float the list so that the items are in a line and their position relative so that the drop down list will appear in the right place underneath each list item */ .menu ul li { float:left; position:relative; } /* style the links to be 104px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */ .menu ul li a, .menu ul li a:visited { display:block; text-align:center; text-decoration:none; width:104px; height:30px; color:#000; border:1px solid #fff; border-width:1px 1px 0 0; background:#c9c9a7; line-height:30px; font-size:11px; } /* make the dropdown ul invisible */ .menu ul li ul { display: none; } /* specific to non IE browsers */ /* set the background and foreground color of the main menu li on hover */ .menu ul li:hover a { color:#fff; background:#b3ab79; } /* make the sub menu ul visible and position it beneath the main menu list item */ .menu ul li:hover ul { display:block; position:absolute; top:31px; left:0; width:105px; } /* style the background and foreground color of the submenu links */ .menu ul li:hover ul li a { display:block; background:#faeec7; color:#000; } /* style the background and forground colors of the links on hover */ .menu ul li:hover ul li a:hover { background:#dfc184; color:#000; } </style> <!--[if lte IE 6]> <style type="text/css"> /* styling specific to Internet Explorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */ /* Get rid of any default table style */ table { border-collapse:collapse; margin:0; padding:0; } /* ignore the link used by 'other browsers' */ .menu ul li a.hide, .menu ul li a:visited.hide { display:none; } /* set the background and foreground color of the main menu link on hover */ .menu ul li a:hover { color:#fff; background:#b3ab79; } /* make the sub menu ul visible and position it beneath the main menu list item */ .menu ul li a:hover ul { display:block; position:absolute; top:32px; left:0; width:105px; } /* style the background and foreground color of the submenu links */ .menu ul li a:hover ul li a { background:#faeec7; color:#000; } /* style the background and forground colors of the links on hover */ .menu ul li a:hover ul li a:hover { background:#dfc184; color:#000; } </style> <![endif]--> </head> <body> <div class="menu"> <ul> <li><a class="hide" href="../menu/index.html">DEMOS</a> <!--[if lte IE 6]> <a href="../menu/index.html">DEMOS <table><tr><td> <![endif]--> <ul> <li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li> <li><a href="../menu/embed.html" title="Wrapping text around images">wrapping text</a></li> <li><a href="../menu/form.html" title="Styling
上一篇:纯DIV+CSS制作的水平三级横向弹出菜单
下一篇:紫色简洁风格的三级网站导航菜单
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
中电信率先推移动转售业务 中下旬批量上市
揭秘:阿里巴巴“无人认领”的三成股权都归谁
微软大幅调整Bing在华策略:从高大上到接地气
微软与摩托罗拉授权协议涵盖Android和Chrome设备
小米发明的“低价抢购”模式还能管用多久?
二维码支付大战的号角注定已经吹响,尚需标准发放
途牛开盘价9美元 与发行价持平
京东很忙:升服务推产品更新招股书 能赶在阿里前上市?
国美在线叫板京东:李俊涛底气在哪?
推荐阅读
更多>
阿里巴巴上市后雅虎将面临更大的业绩压力
网络旅行游记被曝插入"软广告" 个别人士月入数万
微信企业号必须搬走四座大山,否则只能铩羽而归!
电信运营商员工涌入虚拟运营商,待遇差距多大?
途牛开盘价9美元 与发行价持平
Line风靡亚洲,在北美却进展缓慢
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
“组合拳”怎么打 拆解小米新玩法
牟贵先挂帅 国美在线“价钱战”昔日开打
屌丝程序猿发家机会来了 用大数据来做生意!
喜大普奔:2016年国内乘客有望在飞机上使用手机
谷歌欲收买WhatsApp添加砝码 对方否认
支付宝被曝严重破绽 隐私平安再受质疑
中国移动4G资费调整方案6月1日起正式实施
赴美开店,阿里11Main准备好了吗?
马斯克的特斯拉能否保持好势头
一大波智能路由器正在袭来:小米、360、极路由大PK
惠普董事长莱恩辞职 为巨额财务减记埋单
完美入股盛大:一桩各怀心事的交易
移动联通回应税率改革:短期内收入利润将大减