Zhuangpeiyue (Talk | contribs) |
Zhuangpeiyue (Talk | contribs) |
||
Line 53: | Line 53: | ||
} | } | ||
}); | }); | ||
− | |||
+ | $('#header .navs').hover(function(){ | ||
+ | if(flag){ | ||
+ | flag=false | ||
+ | $(this).find('.nav_2').slideDown(200,function(){ | ||
+ | flag=true; | ||
+ | }); | ||
+ | } | ||
+ | },function(){ | ||
+ | $(this).find('.nav_2').fadeOut(200); | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
Line 208: | Line 218: | ||
font-weight:bold; | font-weight:bold; | ||
font-size:.8em; | font-size:.8em; | ||
+ | } | ||
+ | #header .header_nav .nav_2{ | ||
+ | position:absolute; | ||
+ | top:5em; | ||
+ | left:0; | ||
+ | min-width:100%; | ||
+ | background-color:#fff; | ||
+ | color:#333; | ||
+ | box-shadow:0 0 .3em #333; | ||
+ | display:none; | ||
+ | } | ||
+ | #header .header_nav .nav_2>*{ | ||
+ | border-top:1px solid #ccc; | ||
+ | display:block; | ||
+ | line-height:3em; | ||
+ | padding:0 1em; | ||
+ | font-weight:normal; | ||
+ | font-size:.9em; | ||
+ | } | ||
+ | #header .header_nav .nav_2>*:first-child{ | ||
+ | border:none; | ||
+ | } | ||
+ | #header .header_nav .nav_2>*:hover{ | ||
+ | background-color:#f3f3f3; | ||
} | } | ||
#header .header_team{ | #header .header_team{ |
Revision as of 01:25, 13 October 2017