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



174 692 231



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

代码结构

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>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 导航切换 二级导航菜单 下拉导航菜单 图片切换 竖直导航菜单 文字切换 图标导航菜单 背景切换 固定导航菜单 手风琴 侧边导航菜单 选项卡自动切换 树形导航菜单 视频切换 网址导航菜单 列表切换 导航菜单插件 渐隐切换 文字导航菜单 全屏切换 切换按钮 缩放切换 滚动导航菜单 滑动导航菜单 浮动导航菜单 导航切换 右键菜单 收缩导航菜单 html5动画导航菜单 flash导航菜单 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 导航菜单导航条

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

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