css3棕色渐变导航菜单特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 css3棕色渐变导航菜单特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

css3棕色渐变导航菜单特效代码

HTML代码(index.html):

<!DOCTYPE html>
<html lang="en">
<head>
    <title>css3棕色渐变导航菜单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="css/style.css">
    <style>
        html, body {
            margin: 0;
            background: #efefeb;
        }
    </style>
    <meta name="robots" content="noindex,follow" />
</head>

<body>
    <center>
        <br>
        <div id="menu-wrapper">

            <ul class="nav">
                <li>
                    <a href="#">What&#39;s new</a>
                    <div>
                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Seventh Generation</a></li>
                                <li><a href="#">Diapers</a></li>
                                <li><a href="#">Derbies</a></li>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>

                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Seventh Generation</a></li>
                                <li><a href="#">Diapers</a></li>
                                <li><a href="#">Derbies</a></li>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3 class="orange">Related Categories</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Diapers</a></li>
                            </ul>

                            <h3 class="orange">Brands</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
                <li><a href="#">Top rated</a></li>
                <li>
                    <a href="#">Earnings</a>
                    <div>
                        <div class="nav-column">
                            <h3 class="orange">Related Categories</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Diapers</a></li>
                            </ul>

                            <h3 class="orange">Brands</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Seventh Generation</a></li>
                                <li><a href="#">Diapers</a></li>
                                <li><a href="#">Derbies</a></li>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>

                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>

                        <div class="nav-column">
                            <h3>Home</h3>
                            <ul>
                                <li><a href="#">Pampers Diapers</a></li>
                                <li><a href="#">Huggies Diapers</a></li>
                                <li><a href="#">Seventh Generation</a></li>
                                <li><a href="#">Diapers</a></li>
                                <li><a href="#">Derbies</a></li>
                                <li><a href="#">Driving shoes</a></li>
                                <li><a href="#">Espadrilles</a></li>
                                <li><a href="#">Loafers</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
                <li><a href="#">Rings</a></li>
                <li><a href="#">Bracelets</a></li>
                <li><a href="#">All Categories</a></li>
                <li class="nav-search">
                    <form action="#">
                        <input type="text" placeholder="Search...">
                        <input type="submit" value="">
                    </form>
                </li>
            </ul>

        </div>
    </center>
</body>
</html>

CSS代码(style.css):

/* Reset */
.nav,.nav a,.nav ul,.nav li,.nav div,.nav form,.nav input{margin:0;padding:0;border:none;outline:none;}
.nav a{text-decoration:none;}
.nav li{list-style:none;}
/* Menu Container */
.nav{display:inline-block;position:relative;cursor:default;z-index:500;}
/* Menu List */
.nav > li{display:block;float:left;}
/* Menu Links */
.nav > li > a{position:relative;display:block;z-index:510;height:54px;padding:0 20px;line-height:54px;font-family:Helvetica,Arial,sans-serif;font-weight:bold;font-size:13px;color:#fcfcfc;text-shadow:0 0 1px rgba(0,0,0,.35);background:#372f2b;border-left:1px solid #4b4441;border-right:1px solid #312a27;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease;}
.nav > li:hover > a{background:#4b4441;}
.nav > li:first-child > a{border-radius:3px 0 0 3px;border-left:none;}
/* Search Form */
.nav > li.nav-search > form{position:relative;width:inherit;height:54px;z-index:510;border-left:1px solid #4b4441;}
.nav > li.nav-search input[type="text"]{display:block;float:left;width:1px;height:24px;padding:15px 0;line-height:24px;font-family:Helvetica,Arial,sans-serif;font-weight:bold;font-size:13px;color:#999999;text-shadow:0 0 1px rgba(0,0,0,.35);background:#372f2b;-webkit-transition:all .3s ease 1s;-moz-transition:all .3s ease 1s;-o-transition:all .3s ease 1s;-ms-transition:all .3s ease 1s;transition:all .3s ease 1s;}
.nav > li.nav-search input[type="text"]:focus{color:#fcfcfc;}
.nav > li.nav-search input[type="text"]:focus,.nav > li.nav-search:hover input[type="text"]{width:110px;padding:15px 20px;-webkit-transition:all .3s ease .1s;-moz-transition:all .3s ease .1s;-o-transition:all .3s ease .1s;-ms-transition:all .3s ease .1s;transition:all .3s ease .1s;}
.nav > li.nav-search input[type="submit"]{display:block;float:left;width:20px;height:54px;padding:0 25px;cursor:pointer;background:#372f2b url(../img/search-icon.png) no-repeat center center;border-radius:0 3px 3px 0;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-o-transition:all .3s ease;-ms-transition:all .3s ease;transition:all .3s ease;}
.nav > li.nav-search input[type="submit"]:hover{background-color:#4b4441;}
/* Menu Dropdown */
.nav > li > div{position:absolute;display:block;width:100%;top:50px;left:0;opacity:0;visibility:hidden;overflow:hidden;background:#ffffff;border-radius:0 0 3px 3px;-webkit-transition:all .3s ease .15s;-moz-transition:all .3s ease .15s;-o-transition:all .3s ease .15s;-ms-transition:all .3s ease .15s;transition:all .3s ease .15s;}
.nav > li:hover > div{opacity:1;visibility:visible;overflow:visible;}
/* Menu Content Styles */
.nav .nav-column{float:left;width:20%;padding:2.5%;}
.nav .nav-column h3{margin:20px 0 10px 0;line-height:18px;font-family:Helvetica,Arial,sans-serif;font-weight:bold;font-size:14px;color:#372f2b;text-transform:uppercase;}
.nav .nav-column h3.orange{color:#ff722b;}
.nav .nav-column li a{display:block;line-height:26px;font-family:Helvetica,Arial,sans-serif;font-weight:bold;font-size:13px;color:#888888;}
.nav .nav-column li a:hover{color:#666666;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
3.25 KB
Html Js 菜单导航特效6
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章