国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jquery實現紅色豎向多級向右展開的導航菜單效果

2019-11-20 11:38:26
字體:
來源:轉載
供稿:網友

本文實例講述了jquery實現紅色豎向多級向右展開的導航菜單效果。分享給大家供大家參考。具體如下:

這里介紹的是一款紅色豎向多級向右展開的導航菜單,多用于博客網站的導航菜單,紅色風格,非常漂亮,向右伸展的菜單。

運行效果截圖如下:

在線演示地址如下:

http://demo.VeVB.COm/js/2015/jquery-red-style-show-menu-codes/

具體代碼如下:

<!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><title>紅色豎向多級向右展開的導航菜單</title><meta http-equiv="content-type" content="text/html;charset=gb2312"><style type="text/css">.nav{float:left;position:relative;width:253px;}h2,ul,p{margin:0;padding:0;text-align:center;}h2{font-weight:400;font-size:100%;background:#9B203F;border-bottom:solid 1px #500C1B;}h2 a{list-style-type:none;height:37px;color:#fff;line-height:37px;}ul{font-size:0;background:#9B203F;padding:0 0 40px;}ul li{list-style-type:none;padding-bottom:5px;color:#fff;font-size:14px;padding:0 20px;height:34px;line-height:34px;position:relative;}ul li a{border-bottom:dashed 1px #E67A92;display:block;width:196px;margin:0 auto;}ul li.hover_bg{background:#C30431;}.Secon_Dary{width:253px;background:#C30431;position:absolute;right:-253px;top:0;padding-bottom:30px;display:none;}.Secon_Dary p{padding:0 20px;}.Secon_Dary a{display:block;height:34px;line-height:34px;color:#fff;border-bottom:dashed 1px #E67A92;}a{cursor:pointer;}</style><script src="jquery-1.6.2.min.js" type="text/javascript"></script><script type="text/javascript">$(document).ready(function(){ $(".nav ul li").hover(function(){  $(this).addClass("hover_bg");  $(this).children("div").show(); },function(){  $(this).removeClass("hover_bg");  $(this).children("div").hide(); })})</script></head><body><div class="nav"> <h2><a>ALL CATEGORIES</a></h2> <ul>  <li>   <a>Posojg</a>   <div class="Secon_Dary">    <p>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>    </p>   </div>  </li>  <li>   <a>FOwojg</a>   <div class="Secon_Dary">    <p>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>    </p>   </div>    </li>  <li>   <a>Sowgjed</a>   <div class="Secon_Dary">    <p>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>    </p>   </div>  </li>  <li>   <a>Gowjgeo</a>   <div class="Secon_Dary">    <p>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>     <a>AAAAAAAAAAA</a>     <a>BBBBBB</a>    </p>   </div>  </li> </ul></div></body></html>

希望本文所述對大家的jquery程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 朔州市| 博乐市| 吉林省| 沈丘县| 长丰县| 友谊县| 江源县| 定安县| 广汉市| 吉林市| 卓尼县| 大田县| 德昌县| 拜城县| 积石山| 普定县| 南川市| 高青县| 斗六市| 乐昌市| 东丰县| 宣汉县| 闸北区| 嵊泗县| 四川省| 城步| 德令哈市| 无棣县| 莱州市| 抚州市| 平邑县| 瑞金市| 迁西县| 永年县| 从江县| 扬州市| 上蔡县| 丽水市| 高碑店市| 靖江市| 阿荣旗|