代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Css
】
二级dropdown弹出菜单
作者:
Dezai.CN
/ 发布于
2012/4/1
/
610
二级dropdown弹出菜单
<div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></div> <div><html xmlns="http://www.w3.org/1999/xhtml"></div> <div><head></div> <div><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></div> <div><title>二级dropdown弹出菜单--A CROSS BROWSER Drop DOWN CASCADING VALIDATING MENU</title></div> <div><style type="text/css"></div> <div>/* common styling */</div> <div>/* set up the overall width of the menu div, the font and the margins */</div> <div>.menu {</div> <div>font-family: arial, sans-serif;</div> <div>width:750px;</div> <div>margin:0;</div> <div>margin:50px 0;</div> <div>} <div>/* remove the bullets and set the margin and padding to zero for the unordered list */</div> <div>.menu ul {</div> <div>padding:0;</div> <div>margin:0;</div> <div>list-style-type: none;</div> <div>} <div>/* 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 */</div> <div>.menu ul li {</div> <div>float:left;</div> <div>position:relative;</div> <div>} <div>/* 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. */</div> <div>.menu ul li a, .menu ul li a:visited {</div> <div>display:block;</div> <div>text-align:center;</div> <div>text-decoration:none;</div> <div>width:104px;</div> <div>height:30px;</div> <div>color:#000;</div> <div>border:1px solid #fff;</div> <div>border-width:1px 1px 0 0;</div> <div>background:#c9c9a7;</div> <div>line-height:30px;</div> <div>font-size:11px;</div> <div>} <div>/* make the dropdown ul invisible */</div> <div>.menu ul li ul {</div> <div>display: none;</div> <div>} <div>/* specific to non IE browsers */</div> <div>/* set the background and foreground color of the main menu li on hover */</div> <div>.menu ul li:hover a {</div> <div>color:#fff;</div> <div>background:#b3ab79;</div> <div>} <div>/* make the sub menu ul visible and position it beneath the main menu list item */</div> <div>.menu ul li:hover ul {</div> <div>display:block;</div> <div>position:absolute;</div> <div>top:31px;</div> <div>left:0;</div> <div>width:105px;</div> <div>} <div>/* style the background and foreground color of the submenu links */</div> <div>.menu ul li:hover ul li a {</div> <div>display:block;</div> <div>background:#faeec7;</div> <div>color:#000;</div> <div>} <div>/* style the background and forground colors of the links on hover */</div> <div>.menu ul li:hover ul li a:hover {</div> <div>background:#dfc184;</div> <div>color:#000;</div> <div>} <div></style></div> <div><!--[if lte IE 6]></div> <div><style type="text/css"></div> <div>/* styling specific to Internet Explorer IE5.5 and IE6. Yet to see if IE7 handles li:hover */</div> <div>/* Get rid of any default table style */</div> <div>table {</div> <div>border-collapse:collapse;</div> <div>margin:0;</div> <div>padding:0;</div> <div>} <div>/* ignore the link used by 'other browsers' */</div> <div>.menu ul li a.hide, .menu ul li a:visited.hide {</div> <div>display:none;</div> <div>} <div>/* set the background and foreground color of the main menu link on hover */</div> <div>.menu ul li a:hover {</div> <div>color:#fff;</div> <div>background:#b3ab79;</div> <div>} <div>/* make the sub menu ul visible and position it beneath the main menu list item */</div> <div>.menu ul li a:hover ul {</div> <div>display:block;</div> <div>position:absolute;</div> <div>top:32px;</div> <div>left:0;</div> <div>width:105px;</div> <div>} <div>/* style the background and foreground color of the submenu links */</div> <div>.menu ul li a:hover ul li a {</div> <div>background:#faeec7;</div> <div>color:#000;</div> <div>} <div>/* style the background and forground colors of the links on hover */</div> <div>.menu ul li a:hover ul li a:hover {</div> <div>background:#dfc184;</div> <div>color:#000;</div> <div>} <div></style></div> <div><![endif]--></div> <div></head></div> <div><body></div> <div><div class="menu"></div> <div><ul></div> <div><li><a class="hide" href="../menu/index.html">DEMOS</a></div> <div><!--[if lte IE 6]></div> <div><a href="../menu/index.html">DEMOS</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li></div> <div> <li><a href="../menu/embed.html" title="Wrapping text around images">wrapping text</a></li></div> <div> <li><a href="../menu/form.html" title="Styling forms">styled form</a></li></div> <div> <li><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</a></li></div> <div> <li><a href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</a></li></div> <div> <li><a href="../menu/old_master.html" title="Image Map for detailed information">image map</a></li></div> <div> <li><a href="../menu/bodies.html" title="fun with background images">fun backgrounds</a></li></div> <div> <li><a href="../menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</a></li></div> <div> <li><a href="../menu/em_images.html" title="em size images compared">em sized images</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="index.html">MENUS</a></div> <div><!--[if lte IE 6]></div> <div><a href="index.html">MENUS</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="spies.html" title="a coded list of spies">spies menu</a></li></div> <div> <li><a href="vertical.html" title="a horizontal vertical menu">vertical menu</a></li></div> <div> <li><a href="expand.html" title="an enlarging unordered list">enlarging list</a></li></div> <div> <li><a href="enlarge.html" title="an unordered list with link images">link images</a></li></div> <div> <li><a href="cross.html" title="non-rectangular links">non-rectangular</a></li></div> <div> <li><a href="jigsaw.html" title="jigsaw links">jigsaw links</a></li></div> <div> <li><a href="circles.html" title="circular links">circular links</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="../layouts/index.html">LAYOUTS</a></div> <div><!--[if lte IE 6]></div> <div><a href="../layouts/index.html">LAYOUTS</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</a></li></div> <div> <li><a href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</a></li></div> <div> <li><a href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</a></li></div> <div> <li><a href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</a></li></div> <div> <li><a href="../layouts/minimum.html" title="A simple minimum width layout">minimum width</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="../boxes/index.html">BOXES</a></div> <div><!--[if lte IE 6]></div> <div><a href="../boxes/index.html">BOXES</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="spies.html" title="a coded list of spies">spies menu</a></li></div> <div> <li><a href="vertical.html" title="a horizontal vertical menu">vertical menu</a></li></div> <div> <li><a href="expand.html" title="an enlarging unordered list">enlarging list</a></li></div> <div> <li><a href="enlarge.html" title="an unordered list with link images">link images</a></li></div> <div> <li><a href="cross.html" title="non-rectangular links">non-rectangular</a></li></div> <div> <li><a href="jigsaw.html" title="jigsaw links">jigsaw links</a></li></div> <div> <li><a href="circles.html" title="circular links">circular links</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="../mozilla/index.html">MOZILLA</a></div> <div><!--[if lte IE 6]></div> <div><a href="../mozilla/index.html">MOZILLA</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</a></li></div> <div> <li><a href="../mozilla/cascade.html" title="A cascading menu">cascading menu</a></li></div> <div> <li><a href="../mozilla/content.html" title="Using content:">content:</a></li></div> <div> <li><a href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</a></li></div> <div> <li><a href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</a></li></div> <div> <li><a href="../mozilla/snooker.html" title="Snooker cue">snooker cue</a></li></div> <div> <li><a href="../mozilla/target.html" title="Target Practise">target practise</a></li></div> <div> <li><a href="../mozilla/splittext.html" title="Two tone headings">two tone headings</a></li></div> <div> <li><a href="../mozilla/shadow_text.html" title="Shadow text">shadow text</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="../ie/index.html">EXPLORER</a></div> <div><!--[if lte IE 6]></div> <div><a href="../ie/index.html">EXPLORER</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="../ie/exampleone.html" title="Example one">example one</a></li></div> <div> <li><a href="../ie/weft.html" title="Weft fonts">weft fonts</a></li></div> <div> <li><a href="../ie/exampletwo.html" title="Vertical align">vertical align</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div><li><a class="hide" href="../opacity/index.html">OPACITY</a></div> <div><!--[if lte IE 6]></div> <div><a href="../opacity/index.html">OPACITY</div> <div><table><tr><td></div> <div><![endif]--></div> <div> <ul></div> <div> <li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li></div> <div> <li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li></div> <div> <li><a href="../opacity/png.html" title="partial opacity">partial opacity</a></li></div> <div> <li><a href="../opacity/png2.html" title="partial opacity II">partial opacity II</a></li></div> <div> </ul></div> <div><!--[if lte IE 6]></div> <div></td></tr></table></div> <div></a></div> <div><![endif]--></div> <div></li></div> <div></ul></div> <div><!-- clear the floats if required --></div> <div><div class="clear"> </div></div> <div></div></div> <div></body></div> <div></html></div>
试试其它关键字
弹出菜单
同语言下
.
前端PC-移动端CSS公共样式+HTML
.
手机端页面通用样式
.
H5页面通用头部设置
.
elect默认样式美化代码兼容移动端和pc端
.
按钮效果 css
.
唤醒app
.
放大效果
.
html5+css3实现上拉和下拉刷新
.
html上传图片后,在页面显示上传的图片
.
html5实现点击弹出图片
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3