DIV+CSS制作的水平三级横向弹出菜单

<!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>DIV+CSS制作的水平三级横向弹出菜单丨石家庄幼教|城市人家装饰|聚来宝是真的吗</title>
    <style type="text/css">
    /* common styling */
    .menu {font-family: arial, sans-serif; width:749px; height:30px; position:relative; margin:0; font-size:11px; margin:50px 0; background:#fff; position:relative;}
    .menu ul {padding:0; margin:0; list-style-type: none;}
    .menu ul li {float:left; border-left:1px solid #eee; width:106px;}
    .menu ul li a, .menu ul li a:visited {display:block; float:left; width:101px; text-decoration:none; padding:0 0 0 5px; height:30px; line-height:30px; color:#000; background:#c9c9a7 url(../../graphics/drop.gif) bottom right no-repeat;}
    .menu ul li ul {display: none;}
    /* specific to non IE browsers */
    .menu ul li:hover a {color:#fff; background:#b3ab79;}
    .menu ul li:hover ul {display:block; position:absolute; width:749px; top:30px; left:0; background:#b3ab79; color:#fff;}
    .menu ul li:hover ul.right_side li {float:right; border:0; border-left:1px solid #eee;}
    .menu ul li:hover ul.left_side li {float:left; border:0; border-left:1px solid #eee;}
    .menu ul li:hover ul li a.hide {background:#bd8d5e url(../../graphics/drop2.gif) bottom right no-repeat; color:#fff;}
    .menu ul li:hover ul li:hover a.hide {background:#b3ab79; color:#fff;}
    .menu ul li:hover ul li ul {display: none;}
    .menu ul li:hover ul li a {display:block; background:##b3ab79; color:#fff;}
    .menu ul li:hover ul li a:hover {background:#dfc184; color:#000;}
    .menu ul li:hover ul li:hover ul {display:block; position:absolute; left:0; top:30px; color:#000; background:#dfc184;}
    .menu ul li:hover ul.right li {float:right;}
    .menu ul li:hover ul li:hover a.hide {background:#dfc184; color:#000;}
    .menu ul li:hover ul li:hover ul li a {background:#dfc184; color:#000;}
    .menu ul li:hover ul li:hover ul li a:hover {background:#bd8d5e; color:#fff;}
    </style>
    <!--[if lte IE 6]>
    <style type="text/css">
    table {border-collapse:collapse; margin:0; padding:0;}
    .menu ul li a.hide, .menu ul li a:visited.hide {display:none;}
    .menu ul li a:hover ul li a.hide {display:none;}
    .menu ul li a, .menu ul li a:visited {background:#c9c9a7 url(../../graphics/drop.gif) 20px right no-repeat;}
    .menu ul li a:hover {color:#fff; background:#b3ab79;}
    .menu ul li a:hover ul {display:block; position:absolute; width:749px; top:30px; left:0; background:#b3ab79; color:#fff;}
    .menu ul li a:hover ul.right_side li {float:right; border-width:0 1px 0 0 0;}
    .menu ul li a:hover ul.left_side li {float:left;}
    .menu ul li a:hover ul li a.sub {background:#bd8d5e url(../../graphics/drop2.gif) 20px right no-repeat; color:#fff;}
    .menu ul li a:hover ul li a {display:block; background:#b3ab79; color:#fff;}
    .menu ul li a:hover ul li a ul {visibility:hidden;}
    .menu ul li a:hover ul li a:hover {background:#dfc184; color:#000;}
    .menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:0; top:30px; color:#000; background:#dfc184;}
    .menu ul li a:hover ul li a:hover ul li a {background:#dfc184; color:#000;}
    .menu ul li a:hover ul li a:hover ul li a:hover {background:#bd8d5e; color:#fff;}
    </style>
    <![endif]-->
    </head>
    <body>
    <div class="menu">
    <ul>
    <li><a class="hide" href="#">DEMOS</a>
    <!--[if lte IE 6]>
    <a href="#">DEMOS
    <table><tr><td>
    <![endif]-->
    <ul>
    <li><a href="#" title="The zero dollar ads page">zero dollars</a></li>
    <li><a href="#" title="Wrapping text around images">wrapping text</a></li>
    <li><a href="#" title="Styling forms">styled form</a></li>
    <li><a href="#" title="Removing active/focus borders">active focus</a></li>
    <li><a class="hide" href="#" title="Hover/click with no active/focus borders">HOVER/CLICK</a>
    <!--[if lte IE 6]>
    <a class="sub" href="#" title="Hover/click with no active/focus borders">HOVER/CLICK
    <table><tr><td>
    <![endif]-->
    <ul class="right_side">
    <li><a href="#" title="Styling forms">styled form</a></li>
    <li><a href="#" title="Removing active/focus borders">active focus</a></li>
    <li><a href="#" title="Hover/click with no active/focus borders">hover/click</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a href="#" title="Multi-position drop shadow">shadow boxing</a></li>
    <li><a href="#" title="Image Map for detailed information">image map</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="index.html">MENUS</a>
    <!--[if lte IE 6]>
    <a href="#">MENUS
    <table><tr><td>
    <![endif]-->
    <ul>
    <li><a href="#" title="a coded list of spies">spies menu</a></li>
    <li><a href="#" title="a horizontal vertical menu">vertical menu</a></li>
    <li><a href="#" title="an enlarging unordered list">enlarging list</a></li>
    <li><a href="#" title="an unordered list with link images">link images</a></li>
    <li><a href="#" title="non-rectangular links">non-rectangular</a></li>
    <li><a href="#" title="jigsaw links">jigsaw links</a></li>
    <li><a href="#" title="circular links">circular links</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="#">LAYOUTS</a>
    <!--[if lte IE 6]>
    <a href="#">LAYOUTS
    <table><tr><td>
    <![endif]-->
    <ul>
    <li><a href="#" title="Cross browser fixed layout">Fixed 1</a></li>
    <li><a href="#" title="Cross browser fixed layout">Fixed 2</a></li>
    <li><a href="#" title="Cross browser fixed layout">Fixed 3</a></li>
    <li><a href="#" title="Cross browser fixed layout">Fixed 4</a></li>
    <li><a href="#" title="A simple minimum width layout">minimum width</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="#">BOXES</a>
    <!--[if lte IE 6]>
    <a href="#">BOXES
    <table><tr><td>
    <![endif]-->
    <ul>
    <li><a href="#" title="a coded list of spies">spies menu</a></li>
    <li><a href="#" title="a horizontal vertical menu">vertical menu</a></li>
    <li><a href="#" title="an enlarging unordered list">enlarging list</a></li>
    <li><a href="#" title="an unordered list with link images">link images</a></li>
    <li><a href="#" title="non-rectangular links">non-rectangular</a></li>
    <li><a href="#" title="jigsaw links">jigsaw links</a></li>
    <li><a href="#" title="circular links">circular links</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="#">MOZILLA</a>
    <!--[if lte IE 6]>
    <a href="#">MOZILLA
    <table><tr><td>
    <![endif]-->
    <ul>
    <li><a href="#" title="A drop down menu">drop down menu</a></li>
    <li><a href="#" title="A cascading menu">cascading menu</a></li>
    <li><a href="#" title="Using content:">content:</a></li>
    <li><a href="#" title=":hover applied to a div">mozzie box</a></li>
    <li><a href="#" title="I can build a rainbow">rainbow box</a></li>
    <li><a href="#" title="Snooker cue">snooker cue</a></li>
    <li><a href="#" title="Target Practise">target practise</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="#">EXPLORER</a>
    <!--[if lte IE 6]>
    <a href="#">EXPLORER
    <table><tr><td>
    <![endif]-->
    <ul class="right_side">
    <li><a href="#" title="Example one">example one</a></li>
    <li><a href="#" title="Weft fonts">weft fonts</a></li>
    <li><a href="#" title="Vertical align">vertical align</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    <li><a class="hide" href="#">OPACITY</a>
    <!--[if lte IE 6]>
    <a href="#">OPACITY
    <table><tr><td>
    <![endif]-->
    <ul class="right_side">
    <li><a href="#" title="colour wheel">opaque colours</a></li>
    <li><a href="#" title="a menu using opacity">opaque menu</a></li>
    <li><a href="#" title="partial opacity">partial opacity</a></li>
    <li><a href="#" title="partial opacity II">partial opacity II</a></li>
    <li><a class="hide" href="#" title="Hover/click with no active/focus borders">HOVER/CLICK</a>
    <!--[if lte IE 6]>
    <a class="sub" href="#" title="Hover/click with no active/focus borders">HOVER/CLICK
    <table><tr><td>
    <![endif]-->
    <ul class="left_side">
    <li><a href="#" title="Styling forms">styled form</a></li>
    <li><a href="#" title="Removing active/focus borders">active focus</a></li>
    <li><a href="#" title="Hover/click with no active/focus borders">hover/click</a></li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    </ul>
    <!--[if lte IE 6]>
    </td></tr></table>
    </a>
    <![endif]-->
    </li>
    </ul>
    </div>
    </body>
    </html>
时间: 2024-11-11 06:22:57

DIV+CSS制作的水平三级横向弹出菜单的相关文章

DIV+CSS制作二级横向弹出菜单,略简单

没有使用JavaScript控制二级菜单的显示,结果如上图所示. 代码如下: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title>纯DIV+CSS制作二级横向弹出菜单</title> 6 <style type="text/css"> 7 .menu{ 8 font-family:arial,sa

三级dropdown弹出菜单

<!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-

js+css实现带缓冲效果右键弹出菜单

<!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-Typ

MUI组件三:列表、遮罩蒙版、数字输入框、侧滑导航和弹出菜单

1.list(列表) 列表是常用的UI控件,mui封装的列表组件比较简单,只需要在ul节点上添加.mui-table-view类.在li节点上添加.mui-table-view-cell类即可,如下为示例代码 <ul class="mui-table-view"> <li class="mui-table-view-cell">Item 1</li> <li class="mui-table-view-cell&q

mui-popover显示、隐藏弹出菜单的方法

一.mui-popover要显示.隐藏弹出菜单,可使用锚点方式. <div id="popover" class="box mui-popover mui-poppicker mui-popover-action mui-popover-bottom" style="height: 500px;background-color: #fff;"> <div class="mui-popover-arrow"&g

纯div+css制作的弹出菜单

<!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-

Div+Css(2):纯Div+Css制作的漂亮点击按钮和关闭按钮

纯Div+Css制作的漂亮点击按钮和关闭按钮,单击点击按钮也有效果.这些都不是图片. 值得注意三点: 1.其中,主要使用了rotate.它能让文字旋转角度 2.还有radius,做圆角专用,很好用的属性.给想我这样的人省去了作图的时间. 3.W3C标准中对CSS3的transition这是样描述的:"CSS的transition允许CSS的属性值在一定的时间区间内平滑地过渡.这种效果可以在鼠标单击.获得焦点.被点击或对元素任何改变中触发,并圆滑地以动画效果改变CSS的属性值." 1 &

DIV CSS制作网页时易犯的错误总结

CSS+DIV是网站标准(或称"WEB标准")中常用的术语之一,通常 为了说明与HTML网页设计语言中的表格(table)定位方式的区别,因为XHTML网站设计标准中,不再使用表格定位技术,而是采用css+div的 方式实现各种定位.应用应用DIV+CSS编码时很容易犯一些错误.本文列举了一些常见的错误: 1. 检查HTML元素是否有拼写错误.是否忘记结束标记 Webjx.Com 即使是老手也经常会弄错div的嵌套关系.可以用dreamweaver的验证功能检查一下有无错误. 网页教学

DIV+CSS制作的导航菜单

<!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-Typ