600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > html如何设置中英导航 js怎么在导航栏互相切换中英文

html如何设置中英导航 js怎么在导航栏互相切换中英文

时间:2019-07-07 09:42:02

相关推荐

html如何设置中英导航 js怎么在导航栏互相切换中英文

这次给大家带来js怎么在导航栏互相切换中英文,js在导航栏互相切换中英文的注意事项有哪些,下面就是实战案例,一起来看一下。

ul的高度为li的一半,ul{overflow:hidden}

li:hover{margin-top:-40px;}

中英切换导航条

*{padding:0; margin:0;}

li{ list-style:none; }

a{ text-decoration:none;}

.nav{ width:100%; height:40px; background:#222; margin-top:100px; overflow:hidden;}

.list{ width:1000px; height:40px; margin:0 auto;}

.list li{ float:left;}

.list li a{ display:block; transition:0.3s;}

.list b,.list i{ display:block; padding:0 30px; color:#aaa; line-height:40px; text-align:center;}

.list b{ font-weight:100}

.list i{ font-style:normal; background:#333; color:#fff;}

.list a:hover{ margin-top:-40px;}

Index

首页

course

职业课程

study

就业学习

BBS

社区

JiKe+

发现+

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。