| 導購 | 订阅 | 在线投稿
分享
 
 
 

定義列表+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- 王朝網路 版權所有