作者:xcLeigh
文章地址:https://blog.csdn.net/weixin_43151418/article/details/131412565
html實(shí)現(xiàn)好看的多種風(fēng)格導(dǎo)航菜單(附源碼)
,導(dǎo)航菜單,源碼下載,分為頂部導(dǎo)航菜單,懸浮按鈕菜單,右鍵功能菜單,左側(cè)導(dǎo)航菜單四種導(dǎo)航菜單。每種導(dǎo)航菜單有至少三種風(fēng)格,總共23種風(fēng)格,各種風(fēng)格都有,代碼上手簡單,代碼獨(dú)立,可以直接使用,效果酷炫,總有一款你喜歡的。也可直接預(yù)覽效果。
1.設(shè)計(jì)來源
1.1 頂部導(dǎo)航菜單
1.1.1 界面風(fēng)格1-一二級連體導(dǎo)航菜單
????舒適版的頂部導(dǎo)航菜單,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.1.2 界面風(fēng)格2-二級導(dǎo)航下拉框
????舒適版的頂部導(dǎo)航菜單,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.1.3 界面風(fēng)格3-系統(tǒng)開始風(fēng)格
????舒適版的頂部導(dǎo)航菜單,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.1.4 界面風(fēng)格4-購物類導(dǎo)航菜單
????舒適版的頂部導(dǎo)航菜單,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.1.5 界面風(fēng)格5 - 帶搜索擴(kuò)展的導(dǎo)航條
????舒適版的頂部導(dǎo)航菜單,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.1.6 界面風(fēng)格6-火熱效果多級導(dǎo)航條
????舒適版的頂部導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,具體效果,見下面的 動態(tài)效果 。
1.2 懸浮按鈕菜單
????懸浮按鈕菜單,支持放到界面任何位置,支持自定義多級菜單,支持動態(tài)配置各種樣式,各種效果。
1.2.1 界面風(fēng)格1
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
圈起來效果
半圓效果
半角效果
1.2.2 界面風(fēng)格2
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
半圓效果
圈起來效果
1.2.3 界面風(fēng)格3
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,這里部分是圖片,看不出動態(tài)效果,具體界面完整效果,見下面的 動態(tài)效果 。
右下角固定圖標(biāo)
1.2.4 界面風(fēng)格4
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.2.5 界面風(fēng)格5
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
效果1-花型導(dǎo)航
效果2-環(huán)形導(dǎo)航吸附
效果3-環(huán)形導(dǎo)航間隔
效果4-橫條導(dǎo)航
1.2.6 界面風(fēng)格6
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
單擊出現(xiàn)導(dǎo)航菜單
1.2.7 界面風(fēng)格7
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
單擊出現(xiàn)導(dǎo)航菜單
1.2.8 界面風(fēng)格8
????酷炫的懸浮按鈕菜單,支持多級菜單導(dǎo)航,支持任意位置拖動,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.3 右鍵功能菜單
1.3.1 界面風(fēng)格1 - 多級右鍵導(dǎo)航菜單
????靈活的右鍵功能菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.3.2 界面風(fēng)格2 - 單級右鍵導(dǎo)航菜單
????靈活的右鍵功能菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.3.3 界面風(fēng)格3 - 酷炫圓形右鍵導(dǎo)航菜單
????靈活的右鍵功能菜單,支持多級菜單導(dǎo)航,右鍵點(diǎn)擊的時候帶有音效,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4 左側(cè)導(dǎo)航菜單
1.4.1 界面風(fēng)格1 - 簡易風(fēng)左側(cè)導(dǎo)航菜單
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4.2 界面風(fēng)格2 - 黑系列左側(cè)導(dǎo)航菜單
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4.3 界面風(fēng)格3
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4.4 界面風(fēng)格4
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4.5 界面風(fēng)格5
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
1.4.6 界面風(fēng)格6
????固定的左側(cè)導(dǎo)航菜單,支持多級菜單導(dǎo)航,代碼簡單,方便直接使用,多種效果樣式,具體效果,見下面的 動態(tài)效果 。
2.效果和源碼
2.1 動態(tài)效果
????這里是完整的效果演示,代碼兼容性強(qiáng),可在此代碼基礎(chǔ)上更加完善功能,支持?jǐn)U展自己的風(fēng)格,可以刪減內(nèi)容,打造屬于自己的導(dǎo)航菜單模板。
html實(shí)現(xiàn)好看的多種風(fēng)格導(dǎo)航菜單
2.2 源代碼
????這里是主界面的代碼,其他圖片、js、css等代碼,見下面的 源碼下載 ,里面有所有代碼資源和相關(guān)說明。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>多種風(fēng)格導(dǎo)航菜單 - xcLeigh</title>
<link href="images/favicon.png" rel="icon">
<link rel="stylesheet" type="text/css" href="css/mycss.css" />
</head>
<body style="margin:auto;padding:auto; background-color:rgba(255,133,0,0.03);">
<div class="dicContent" style="width:100%; height:calc(100% - 76px); z-index:111; position:absolute; margin:0px;padding:0px; margin-top:46px;">
<iframe class="dicContent" id="iframeContent" src="template/右鍵功能菜單風(fēng)格1/index.html" border="0" style="border:0px;width:100%;height:calc(100%); position: absolute; margin:0px;padding:0px;background-color: transparent !important;"></iframe>
</div>
<div style="position: absolute; bottom: 0px; text-align: center; width:100%; z-index: 999999;">
<span style="background-color: orange; padding: 4px 8px; display: block; color: white;">此處是演示,每個風(fēng)格的代碼獨(dú)立,可以直接使用,這個頁面是將所有代碼關(guān)聯(lián)起來,便于演示。有不懂的可以私信聯(lián)系我。</span>
</div>
<div class="nav">
<span onclick="showUrl('https://blog.csdn.net/weixin_43151418/')">
<img src="images/favicon.png" style="width: 12px; height: 12px; padding-top: 12px;">
xcLeigh源碼
</span>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格8/index.html',this)" style="border-right: 2px dashed orange;">風(fēng)格8</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格7/index.html',this)">風(fēng)格7</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格6/index.html',this)">風(fēng)格6</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格5/index.html',this)">風(fēng)格5</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格4/index.html',this)">風(fēng)格4</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格3/index.html',this)">風(fēng)格3</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格2/index.html',this)">風(fēng)格2</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/懸浮按鈕菜單風(fēng)格1/index.html',this)">懸浮按鈕菜單</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格6/index.html',this)" style="border-right: 2px dashed orange;">風(fēng)格6</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格5/index.html',this)">風(fēng)格5</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格4/index.html',this)">風(fēng)格4</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格3/index.html',this)">風(fēng)格3</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格2/index.html',this)">風(fēng)格2</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/頂部導(dǎo)航菜單風(fēng)格1/index.html',this)">頂部導(dǎo)航菜單</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格6/index.html',this)" style="border-right: 2px dashed orange;">風(fēng)格6</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格5/index.html',this)">風(fēng)格5</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格4/index.html',this)">風(fēng)格4</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格3/index.html',this)">風(fēng)格3</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格2/index.html',this)">風(fēng)格2</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/左側(cè)導(dǎo)航菜單風(fēng)格1/index.html',this)">左側(cè)導(dǎo)航菜單</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/右鍵功能菜單風(fēng)格3/index.html',this)" style="border-right: 2px dashed orange;">風(fēng)格3</a>
<a href="javascript:void(0);" class="link" onclick="showContent('template/右鍵功能菜單風(fēng)格2/index.html',this)">風(fēng)格2</a>
<a href="javascript:void(0);" class="link active" onclick="showContent('template/右鍵功能菜單風(fēng)格1/index.html',this)" style="border-left: 2px dashed orange;">右鍵功能菜單</a>
</div>
</body>
<script type="text/javascript" src="js/myscript.js"></script>
</html>
2.3 資源結(jié)構(gòu)圖
所有資源結(jié)構(gòu)示例
單個資源結(jié)構(gòu)示例
源碼下載
html實(shí)現(xiàn)好看的多種風(fēng)格導(dǎo)航菜單(源碼) 點(diǎn)擊下載
???? ?? 關(guān)注博主 帶你實(shí)現(xiàn)暢游前后端
???? ?? 加入社區(qū) 帶你體驗(yàn)馬航不孤單
???? ?? 神秘個人簡介 帶你體驗(yàn)不一樣得介紹
???? ?? 為愛表白 為你那個TA,體驗(yàn)別致的浪漫驚喜
???? ?? 酷炫邀請函 帶你體驗(yàn)高大上得邀請
???? ① ??提供云服務(wù)部署(有自己的阿里云);
???? ② ??提供前端、后端、應(yīng)用程序、H5、小程序、公眾號等相關(guān)業(yè)務(wù);
???? 如??合作請聯(lián)系我,期待您的聯(lián)系。
????注:本文撰寫于CSDN平臺,作者:xcLeigh(所有權(quán)歸作者所有),https://blog.csdn.net/weixin_43151418,如果相關(guān)下載沒有跳轉(zhuǎn),請查看這個地址,相關(guān)鏈接沒有跳轉(zhuǎn),皆是抄襲本文,轉(zhuǎn)載請備注本文原地址。
???? 親,碼字不易,動動小手,歡迎 點(diǎn)贊 ? 收藏,如 ?? 問題請留言(評論),博主看見后一定及時給您答復(fù),??????文章來源:http://www.zghlxwxcb.cn/news/detail-508899.html
原文地址:https://blog.csdn.net/weixin_43151418/article/details/131412565(防止抄襲,原文地址不可刪除)文章來源地址http://www.zghlxwxcb.cn/news/detail-508899.html
到了這里,關(guān)于html實(shí)現(xiàn)好看的多種風(fēng)格導(dǎo)航菜單(附源碼)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!