cssplay实用css代码精选-竖型鼠标触发伸缩菜单

Css+Xhtml代码,使用方便简单,也可以自行修改成个性的样式,cssplay实用css代码精选竖型鼠标触发伸缩菜单……

预览地址:http://preview.zcool.com.cn/code/css/menu/011/

相关链接:http://www.cssplay.co.uk

 

 

<!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=gb2312" />
<title>站酷(zcool)CSS+XHTML代码</title>
</head>
<style type="text/css">
/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/drop_variations.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the assocaited (x)html may be modified in any
way to fit your requirements.

由站酷(zcool)http://www.zcool.com.cn/ 整理
来源于:http://www.cssplay.co.uk
=================================================================== */
/* common styling */

/* Set up the default font and ovrall size to include image */
body {
background: #fff;
font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
font-size: 12px;
}

#dlmenu {height:10em;}
#menu {list-style-type:none; margin:0 0 10px; padding:0; position:absolute; width:15em; background:#fff; z-index:100;}
#menu li {display:block; padding:0; margin:0; position:relative; z-index:100;}
#menu li a, #menu li a:visited {display:block; text-decoration:none;}
#menu li dd {display:none;}
#menu li:hover, #menu li a:hover {border:0;}
#menu li:hover dt a , #menu li a:hover dt a {background:#d4d8bd url(top_grad_2.gif) center center; color:#ff0; }
#menu li:hover dd, #menu li a:hover dd {display:block;}
#menu li:hover dl, #menu li a:hover dl {height:20em; background:#b4be9c url(sub_grad.gif);}
#menu table {border-collapse:collapse; padding:0; margin:-4px; font-size:1em;}
#menu dl {width: 15em; margin: 0; background: #6f9c6f; cursor:pointer;}
#menu dt {margin:0; padding: 0; font-size: 1.1em; border-top:1px solid #cce;}
#menu dd {margin:0; padding:0; font-size: 1em; text-align:left; }
.gallery dt a, .gallery dt a:visited {display:block; color:#fff; padding:5px 5px 5px 10px; background:#949e7c url(top_grad.gif) center center;}
.gallery dd a, .gallery dd a:visited {color:#000; min-height:1em; text-decoration:none; display:block; padding:4px 5px 4px 20px; background:#b4be9c url(sub_grad.gif);}
* html .gallery dd a, * html .gallery dd a:visited {height:1em;}
.gallery dd a:hover {background:#7aa; color:#ff0;}

</style>
<body>

<div id="dlmenu">
<ul id="menu">
<li>
<!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]-->
<dl class="gallery">
<dt><a href="../menu/index.html">DEMOS</dt>
<dd><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</dd>
<dd><a href="../menu/embed.html" title="Wrapping text around images">wrapping text</dd>
<dd><a href="../menu/form.html" title="Styling forms">styled form</dd>
<dd><a href="../menu/nodots.html" title="Removing active/focus borders">active focus</dd>
<dd><a href="../menu/shadow_boxing.html" title="Multi-position drop shadow">shadow boxing</dd>
<dd><a href="../menu/old_master.html" title="Image Map for detailed information">image map</dd>
<dd><a href="../menu/bodies.html" title="fun with background images">fun with backgrounds</dd>
<dd><a href="../menu/fade_scroll.html" title="fade-out scrolling">fade scrolling</dd>
<dd><a href="../menu/em_images.html" title="em size images compared">em sized images</dd>
</dl>
<!--[if lte IE 6]></td></tr></table><![endif]-->
</li>
<li>
<!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]-->
<dl class="gallery">
<dt><a href="index.html">MENUS</dt>
<dd><a href="spies.html" title="a coded list of spies">spies menu</dd>
<dd><a href="vertical.html" title="a horizontal vertical menu">vertical menu</dd>
<dd><a href="expand.html" title="an enlarging unordered list">enlarging list</dd>
<dd><a href="enlarge.html" title="an unordered list with link images">link images</dd>
<dd><a href="cross.html" title="non-rectangular links">non-rectangular links</dd>
<dd><a href="jigsaw.html" title="jigsaw links">jigsaw links</dd>
<dd><a href="circles.html" title="circular links">circular links</dd>
</dl>
<!--[if lte IE 6]></td></tr></table><![endif]-->
</li>
<li>
<!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]-->
<dl class="gallery">
<dt><a href="../layouts/index.html">LAYOUTS</dt>
<dd><a href="../layouts/bodyfix.html" title="Cross browser fixed layout">Fixed 1</dd>
<dd><a href="../layouts/body2.html" title="Cross browser fixed layout">Fixed 2</dd>
<dd><a href="../layouts/body4.html" title="Cross browser fixed layout">Fixed 3</dd>
<dd><a href="../layouts/body5.html" title="Cross browser fixed layout">Fixed 4</dd>
<dd><a href="../layouts/minimum.html" title="A simple minimum width layout">minimum width for Internet Explorer</dd>
</dl>
<!--[if lte IE 6]></td></tr></table><![endif]-->
</li>
<li>
<!--[if lte IE 6]><a href="#nogo"><table><tr><td><![endif]-->
<dl class="gallery">
<dt><a href="../mozilla/index.html">MOZILLA</dt>
<dd><a href="../mozilla/dropdown.html" title="A drop down menu">drop down menu</dd>
<dd><a href="../mozilla/cascade.html" title="A cascading menu">cascading menu</dd>
<dd><a href="../mozilla/content.html" title="Using content:">content:</dd>
<dd><a href="../mozilla/moxbox.html" title=":hover applied to a div">mozzie box</dd>
<dd><a href="../mozilla/rainbow.html" title="I can build a rainbow">rainbow box</dd>
<dd><a href="../mozilla/snooker.html" title="Snooker cue">snooker cue made using border art</dd>
<dd><a href="../mozilla/target.html" title="Target Practise">target practise</dd>
</dl>
<!--[if lte IE 6]></td></tr></table><![endif]-->
</li>
</ul>
</div>

</body>
</html>
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值