两种css3导航菜单鼠标悬停中英文切换导航条代码



132 524 175



特效描述:悬停导航菜单 中英切换导航,

代码结构

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

加群请备注:从官网了解到