国产精品一区二区三区……-大杳蕉伊人欧美一本遒在饯-日本不卡一区免费在线观看-国产亚洲欧美中文字幕

400-800-9385
網(wǎng)站建設(shè)資訊詳細(xì)

網(wǎng)站前端制作之網(wǎng)站導(dǎo)航菜單制作

發(fā)表日期:2022-06-14 17:54:34   作者來源:林志平   瀏覽:1555   標(biāo)簽:網(wǎng)站前端制作    
網(wǎng)站導(dǎo)航可以顯示用戶瀏覽的所屬欄目路徑和網(wǎng)站其他欄目的路徑,清楚的展示整個網(wǎng)站的目錄關(guān)系,更加方便用戶點(diǎn)擊跳轉(zhuǎn)到其他欄目瀏覽,導(dǎo)航欄目的展示,有的是展示上下兩級欄目,有的是三級欄目,讓用戶更加清楚完整的了解到網(wǎng)站的信息。二級欄目和三級欄目都可以用css實現(xiàn)的,欄目樣式也可以多種多樣,例如:用css實現(xiàn)導(dǎo)航下拉的三級菜單,如下圖所示:

網(wǎng)站導(dǎo)航

Html:
<div class="nav">
<ul class="clearfix">
<li>
<a href="index.html">
HOME                                                                                                             
</a>
</li>
<li>
<a href="product.html">
PRODUCTS     
</a>
<div class="cellbox">
                <div class="con">
                   <div class="nav-li">
                   <a href="" class="a-level">
                   M-Series Connectors
                   </a>
                       <div class="level-con">
                           <ul>
                             <li class="">
                             <a href="">M-Series Connectors</a>
                             <div class="twolevelbox">
                             <ul>
                             <li>
                             <a href="">
                             Connectors1
                             </a>
                             </li>
                             <li>
                             <a href="">
                             Connectors2
                             </a>
                             </li>
                             <li>
                             <a href="">
                             Connectors3
                             </a>
                             </li>
                             </ul>
                             </div>
                             </li>   
                             <li class="">
                             <a href="">7/8" Connectors</a>
                             <div class="twolevelbox">
                             <ul>
                             <li>
                             <a href="">
                             7/8" Connectors1
                             </a>
                             </li>
                             <li>
                             <a href="">
                             7/8" Connectors2
                             </a>
                             </li>
                             <li>
                             <a href="">
                             7/8" Connectors3
                             </a>
                             </li>
                             </ul>
                             </div>
                             </li>
                             <li class="">
                             <a href="">Circular Connector Series</a>
                             </li>
                           </ul>
                        </div>                    
                   </div>
                   <div class="nav-li">
                   <a href="" class="a-level">
                   7/8" Connectors
                   </a>
                   </div>
                   <div class="nav-li">
                   <a href="" class="a-level">
                   Circular Connector Series
                   </a>
                   </div>
               </div>
            </div>
</li>
<li>    
<a href="Services.html">
SERVICES             
</a>
</li>
</ul>
</div>
Css:
CSS
 
垂直的手風(fēng)琴折疊菜單,一般可以用作后臺頁面的折疊菜單,或者產(chǎn)品頁面的左側(cè)的產(chǎn)品折疊菜單,作用同樣是方便用戶了解網(wǎng)站的信息,使用戶便于快速的找到自己想要瀏覽的內(nèi)容。
如下圖所示:

菜單

Html:
<div class="menulist">
<div class="box">
<div class="item">
<div class="h1">My Account</div>
<div class="wrap">
<a href="">My Vouchers</a>
<a href="">My Profile</a>
<a href="">My Payment Options</a>
<a href="">My Measurements</a>
</div>
</div>
<div class="item">
<div class="h1">My Order</div>
<div class="wrap">
<a href="">My Order1</a>
<a href="">My Order2</a>
<a href="">My Order3</a>
<a href="">My Order4</a>
</div>
</div>
<div class="item">
<div class="h1">My Address</div>
<div class="wrap">
<a href="">My Address1</a>
<a href="">My Address2</a>
</div>
</div>
<div class="item">
<div class="h1">My Settings</div>
<div class="wrap">
<a href="">My Settings1</a>
<a href="">My Settings2</a>
<a href="">My Settings3</a>
<a href="">My Settings4</a>
</div>
</div>
</div>
</div>
Css:

CSS樣式

Js:
$(".menulist .box .h1").click(function () {
    var box_ = $(this).next(".wrap");
    if (box_.is(":hidden")) {
        $(".menulist .box .h1").removeClass("on");
        $(this).addClass("on");
        $(".menulist .box .wrap").slideUp();
        $(this).next(".wrap").slideDown();
    } else {
        $(".menulist .box .h1").removeClass("on");
        $(".menulist .box .wrap").slideUp();
    }
});
如沒特殊注明,文章均為方維網(wǎng)絡(luò)原創(chuàng),轉(zhuǎn)載請注明來自http://pdcharm.com/news/6454.html
营口市| 巧家县| 五家渠市| 禹州市| 江孜县| 高邮市| 白朗县| 象山县| 龙川县| 乌恰县| 吕梁市| 嘉善县| 淳安县| 瓦房店市| 蒙阴县| 崇阳县| 铜鼓县| 双峰县| 清新县| 嘉善县| 望都县| 朝阳区| 蓬安县| 赣州市| 同仁县| 华容县| 山西省| 株洲市| 许昌县| 观塘区| 舞钢市| 禄丰县| 长丰县| 万州区| 江源县| 桂阳县| 时尚| 张家界市| 子洲县| 禄劝| 九台市|