dl,dt,dd制作的CSS垂直菜单
感觉跟ul和li有点类似,不过也算是一种新思路,源码如下:
dl,dt,dd制作的CSS垂直菜单
#menu dl {width: 150px; margin: 0 auto; padding: 0 0 10px 0; background: #69c url(file:///E|/ceshi/media/bottom.gif) no-repeat bottom left;}
#menu dt {margin:0; padding: 10px; font-size: 1.4em; font-weight:bold; color: #fff; border-bottom:1px solid #fff; background: #69c url(file:///E|/ceshi/media/top.gif) no-repeat top left;}
#menu dd {margin:0; padding:0; color: #fff; font-size: 1em; border-bottom:1px solid #fff; background: #47a;}
#gallery a, #gallery a:visited {color:#fff; text-decoration:none; display:block; padding:5px 5px 5px 20px;
background: #47a url(file:///E|/ceshi/media/arrow.gif) no-repeat 10px 10px; width:125px;
}
#gallery a:hover {background: #258 url(file:///E|/ceshi/media/arrowr.gif) no-repeat 11px 10px; color:#9cf;}
ol li {font-size:11px;}
- Gallery
- Paul Cezanne
- Henri Matisse
- Vincent van Gogh
- William Turner
- John Constable
- Claude Monet
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]