兩種css3導航菜單鼠標懸停中英文切換導航條代碼



136 543 182



特效描述:懸停導航菜單 中英切換導航,

代碼結構

1. HTML代碼

<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋體";padding:40px 0 0 0;}
/* jianti */
.jianti{width:100px;height:30px;position:relative;font-family:微軟雅黑;font-size:12px;color:#fff;overflow:hidden;float:left;}
.jianti div{width:100px;height:30px;line-height:30px;position:absolute;text-align:center;-webkit-transition:all 0.3s ease-in-out;-moz-transition:all 0.3s ease-in-out;-o-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;}
.jianti .one{top:0;left:0;z-index:1;background:#63C;color:#FFF;}
.jianti:hover .one{top:-30px;left:0;}
.jianti .one a{background:#63C;color:#FFF;text-decoration:none;}
.jianti .two{bottom:-30px;left:0;z-index:2;background:#f50;color:#FFF;}
.jianti:hover .two{bottom:0px;left:0;}
.jianti .two a{background:#f50;color:#FFF;text-decoration:none;}
/* nav2 */
.nav2{width:100px;height:30px;position:relative;font-family:微軟雅黑;font-size:12px;color:#fff;overflow:hidden;float:left;}
.nav2 div{width:100px;height:30px;line-height:30px;position:absolute;text-align:center;-webkit-transition:all 0.3s ease-in-out;-moz-transition:all 0.3s ease-in-out;-o-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;}
.nav2 .one{top:-30px;left:0;z-index:1;background:#63C;color:#FFF;opacity:0;}
.nav2:hover .one{top:0px;left:0;opacity:1;-webkit-transform:scale(1.3);-moz-transform:scale(1.3);-o-transform:scale(1.3);transform:scale(1.3);}
.nav2 .one a{background:#63C;color:#FFF;text-decoration:none;}
.nav2 .two{bottom:0px;left:0;z-index:2;background:#63C;color:#FFF;}
.nav2:hover .two{bottom:-30px;left:0;}
.nav2 .two a{background:#63C;color:#FFF;text-decoration:none;}
</style>
<div style="width:980px;height:30px;margin:0 auto 20px;">
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">HOME</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">首頁</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">新品中心</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">潮流套裝</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">限時特惠</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
	<div class="jianti">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">Download</a></div>
	</div>
</div>
<div style="width:980px;height:30px;margin:0 auto 20px;">
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">首頁</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">首頁</a></div>
	</div>
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">新品中心</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">新品中心</a></div>
	</div>
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">新品中心</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">新品中心</a></div>
	</div>
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">限時特惠</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">限時特惠</a></div>
	</div>
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">上裝</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">上裝</a></div>
	</div>
	<div class="nav2">
		<div class="one"><a href="http://www.dijiuzhanzhang.com/">連衣裙</a></div>
		<div class="two"><a href="http://www.dijiuzhanzhang.com/">連衣裙</a></div>
	</div>
</div>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: flash導航菜單 flash導航條 flash導航 flash菜單 flash下拉菜單 flash下拉導航菜單 導航切換 菜單切換 浮動菜單 浮動導航 收縮菜單 收縮導航 右鍵菜單 滑動導航菜單 滑動導航 滑動菜單 滾動導航菜單 滾動菜單 滾動導航 h5動畫導航 h5動畫菜單 html5動畫導航 html5動畫菜單 滾動切換 滾動條切換 滑動選項卡 滑動切換 滑動手風琴 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 導航菜單 導航條 菜單欄 導航欄 分類導航 響應式導航條 響應式導航 導航切換 菜單切換 固定導航 固定菜單
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子