DIV+CSS實現的滑動門菜單特效代碼_經驗交流

來源:互聯網
上載者:User
<!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>雲棲社區DIV+CSS實現的滑動門菜單特效 </title> <style type="text/Css"> #menu { margin:0; padding:0; height:26em; overflow:hidden; background:#FFFCF2; } #menu li { list-style-type:none; float:left; display:block; width:100%; } #menu li a { display:block; text-decoration:none; color:#00b; margin:0; width:100%; } #menu li a span { display:none; color:#453739; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; padding: 10px 0px 5px; } #menu li a.one span { display:block; height:15em; margin:0 10px; } #menu li a:hover { background:#FFFCF2; } #menu li a:hover span { display:block; height:15em; margin:0 10px; cursor:pointer; } #menu .h2 { margin:0 5px; padding:0; color:#933A34; font-size:12px; border:0; font-family: Verdana, Arial, Helvetica, sans-serif; } #menu .h3 { margin:0 5px; padding:0; font-size:10px; color:#62583B; font-family: Verdana, Arial, Helvetica, sans-serif; } #menu img { margin:0px 5px 5px; border:1px solid #000; float:left; } .curved { width:21em; } .curved .b1, .curved .b2, .curved .b3, .curved .b4 { font-size:1px; display:block; background:#C7BC98; /* hide overflow:hidden from IE5/Mac */ /* */ overflow: hidden; /* */ } .curved .b1, .curved .b2, .curved .b3 { height:1px; } .curved .b2, .curved .b3, .curved .b4 { background:#FFFCF2; border-left:1px solid #C7BC98; border-right:1px solid #C7BC98; } .curved .b1 { margin:0 4px; background:#C7BC98; } .curved .b2 { margin:0 2px; border-width:0 2px; } .curved .b3 { margin:0 1px; } .curved .b4 { height:2px; margin:0; } .curved .c1 { margin:0 5px; background:#C7BC98; } .curved .c2 { margin:0 3px; border-width:0 2px; } .curved .c3 { margin:0 2px; } .curved .c4 { height:2px; margin: 0 1px; } .curved .boxcontent { display:block; background:transparent; border-left:1px solid #C7BC98; border-right:1px solid #C7BC98; font-size:0.9em; text-align:justify; } </style> </head> <body> <div class="curved"> <b class="b1 c1"></b> <b class="b2 c2"></b> <b class="b3 c3"></b> <b class="b4 c4"></b> <div class="boxcontent"> <ul id="menu"> <li> <b class="h2">雲棲社區</b> <b class="h3">[2007-05-16]</b> <span> 雲棲社區jb51.net,網頁設計,網站製作建設,css學習,網頁標準化 </span> </li> <li> <b class="b1"></b> <b class="b2"></b> <b class="b3"></b> <b class="b4"></b> <b class="h2">網路編程</b> <b class="h3">[2007-05-16]</b> <span> 雲棲社區jb51.net,網頁設計,網站製作建設,css學習,網頁標準化 </span> </li> <li> <b class="b1"></b> <b class="b2"></b> <b class="b3"></b> <b class="b4"></b> <b class="h2">指令碼專欄</b> <b class="h3">[2006-06-18]</b> <span> 雲棲社區jb51.net,網頁設計,網站製作建設,css學習,網頁標準化 </span> </li> <li> <b class="b1"></b> <b class="b2"></b> <b class="b3"></b> <b class="b4"></b> <b class="h2">網頁製作相關知識</b> <b class="h3">[2007-05-16]</b> <span> 雲棲社區jb51.net,網頁設計,網站製作建設,css學習,網頁標準化 </span> </li> <li> <b class="b1"></b> <b class="b2"></b> <b class="b3"></b> <b class="b4"></b> <b class="h2">實用技巧</b> <b class="h3">[2007-05-16]</b> <span> 雲棲社區jb51.net,網頁設計,網站製作建設,css學習,網頁標準化 </span> </li> </ul> </div> <b class="b4 c4"></b> <b class="b3 c3"></b> <b class="b2 c2"></b> <b class="b1 c1"></b> </div> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.