| 订阅 | 在线投稿
分享
 
 
 

定义列表+CSS制作的垂直菜单

来源:互联网  宽屏版  评论
2008-08-29 06:38:38

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

<meta http-equiv="content-language" content="gb2312" />

<title>dl,dt,dd制作的CSS垂直菜单</title>

<style type="text/css">

body {

font-size: 12px;

margin: 0;

}

#menu dl {

margin: 0 auto;

padding: 0 0 10px 0;

width: 150px;

background: #69c;

}

#menu dt {

margin: 0;

padding: 10px;

background: #69c;

color: #fff;

font-size: 1.4em;

font-weight: bold;

border-bottom: 1px solid #fff;

}

#menu dd {

margin: 0;

padding: 0;

background: #47a;

color: #fff;

font-size: 1em;

border-bottom:1px solid #fff;

}

#gallery a, #gallery a:visited {

display:block;

padding:5px 5px 5px 20px;

width:125px;

background: #47a;

color:#fff;

text-decoration:none;

}

#gallery a:hover {

background: #258;

color:#9cf;

}

</style>

</head>

<body>

<div id="menu">

<dl id="gallery">

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

</body>

</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url=http://www.w3.org/1999/xhtml]http://www.w3.org/1999/xhtml[/url]"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-language" content="gb2312" /> <title>dl,dt,dd制作的CSS垂直菜单</title> <style type="text/css"> body { font-size: 12px; margin: 0; } #menu dl { margin: 0 auto; padding: 0 0 10px 0; width: 150px; background: #69c; } #menu dt { margin: 0; padding: 10px; background: #69c; color: #fff; font-size: 1.4em; font-weight: bold; border-bottom: 1px solid #fff; } #menu dd { margin: 0; padding: 0; background: #47a; color: #fff; font-size: 1em; border-bottom:1px solid #fff; } #gallery a, #gallery a:visited { display:block; padding:5px 5px 5px 20px; width:125px; background: #47a; color:#fff; text-decoration:none; } #gallery a:hover { background: #258; color:#9cf; } </style> </head> <body> <div id="menu"> <dl id="gallery"> <dt>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> </body> </html>
󰈣󰈤
 
 
 
>>返回首页<<
 
 热帖排行
 
 
王朝网络微信公众号
微信扫码关注本站公众号wangchaonetcn
 
 
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
©2005- 王朝网络 版权所有