Commit 1c9bdcc1 by 梁建民

css

parent 3583241b
......@@ -77,7 +77,6 @@ body { overflow-x: hidden; }
.pc-index-nav .pc-nav-wrap .parent li dl dd:hover { border: solid 1px #18ffcb; }
.pc-index-nav .pc-nav-wrap .parent li.curr { background-color: #c81e1d; }
.pc-index-nav .pc-nav-wrap .parent li:hover { background-color: #c81e1d; }
.pc-index-nav .pc-nav-wrap .parent li:hover dl { display: block; }
.index-banner { position: relative; width: 100%; height: 660px; overflow: hidden; }
.index-banner .banner-wrap { position: relative; width: 100%; height: 100%; }
......
......@@ -100,9 +100,6 @@
}
&:hover {
background-color: #c81e1d;
dl {
display: block;
}
}
}
}
......
......@@ -5,8 +5,15 @@
},
handleBind: function (opt) {
var hrefUrl = window.location.pathname;
//nav
$(".pc-nav-wrap").find('li').hover(function () {
$(this).children('dl').slideDown('slow');
}, function () {
$(this).children('dl').hide();
});
//导航active
var hrefUrl = window.location.pathname;
if (hrefUrl.indexOf('contact') > -1) {
$(".pc-nav-wrap ul li").eq(3).addClass('curr').siblings('li').removeClass('curr');
} else if (hrefUrl.indexOf('product') > -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment