一个不错的动感导航菜单
2022-10-29 18:24:21内容摘要
<style> dl{width:150px;background:#00f url(bottom.gif) no-repeat left bottom;color:#fff;padding-bottom:5px;}
dt{background:#00f url(top.gif) no-repeat top lef
dt{background:#00f url(top.gif) no-repeat top lef
文章正文
<style>
dl{width:150px;background:#00f url(bottom.gif) no-repeat left bottom;color:#fff;padding-bottom:5px;}
dt{background:#00f url(top.gif) no-repeat top left;padding:10px 10px 10px 20px;font:14px/1.5em arial;border-bottom:1px solid #fff;}
dd{margin:0;border-bottom:1px solid #fff;}
a{display:block;background:url(arrow.gif) no-repeat 10px 10px;color:#fff;text-decoration:none;padding:5px 0px 5px 20px;font:12px/1.5em arial;}
a:hover{color:#fcc;background:url(arrow.gif) no-repeat 11px 10px;}
</style>
<div id="menu">
<dl id="gallery">
<dt>Art Gallery</dt>
<dd><a href="#" title="Paul Cezanne">Paul Cezanne</a></dd>
<dd><a href="#" title="Henri Matisse">Henri Matisse</a></dd>
<dd><a href="#" title="Vincent van Gogh">Vincent van Gogh</a></dd>
<dd><a href="#" title="William Turner">William Turner</a></dd>
<dd><a href="#" title="John Constable">John Constable</a></dd>
<dd><a href="#" title="Claude Monet">Claude Monet</a></dd>
</dl>
</div>
效果演示
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
dl{width:150px;background:#00f url(bottom.gif) no-repeat left bottom;color:#fff;padding-bottom:5px;}
dt{background:#00f url(top.gif) no-repeat top left;padding:10px 10px 10px 20px;font:14px/1.5em arial;border-bottom:1px solid #fff;}
dd{margin:0;border-bottom:1px solid #fff;}
a{display:block;background:url(arrow.gif) no-repeat 10px 10px;color:#fff;text-decoration:none;padding:5px 0px 5px 20px;font:12px/1.5em arial;}
a:hover{color:#fcc;background:url(arrow.gif) no-repeat 11px 10px;}
</style>
<div id="menu">
<dl id="gallery">
<dt>Art Gallery</dt>
<dd><a href="#" title="Paul Cezanne">Paul Cezanne</a></dd>
<dd><a href="#" title="Henri Matisse">Henri Matisse</a></dd>
<dd><a href="#" title="Vincent van Gogh">Vincent van Gogh</a></dd>
<dd><a href="#" title="William Turner">William Turner</a></dd>
<dd><a href="#" title="John Constable">John Constable</a></dd>
<dd><a href="#" title="Claude Monet">Claude Monet</a></dd>
</dl>
</div>
效果演示
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
代码注释