17C精品-亚洲色欲色欲www在线观看-午夜激情福利视频-婷婷综合色-亚洲成人精品在线观看-h片免费观看-欧美日韩一二三四-一起操在线-色噜噜一区二区-日韩av无码中文字幕-夜夜草影院-国产精品18久久久-2020av在线-草逼视频网-草草视频在线-波多野吉衣在线视频-日本激情视频在线观看-亚洲精品成-xxx国产在线观看-国产高清精品一区-99免费国产-日本十大三级艳星-a天堂视频在线-国内自拍视频一区-一区精品久久

變換菜單展示及制作

2016/12/16 8:35:17   閱讀:2060    發(fā)布者:2060

效果圖:

點(diǎn)擊菜單   中英文切換

css樣式:

 

.top-nav
{
font-size: 12px;
font-weight: bold;
list-style: none;
border-bottom: 8px solid #DC4E1B;
overflow: auto;

//去浮動(dòng),使下級(jí)的浮動(dòng)自適應(yīng)或 overflow:hidden;
}
.top-nav li
{
float: left;
margin-right: 1px;
}
.top-nav li a
{
line-height: 20px;
text-decoration: none;
background: #DDDDDD;
color: #666666;
display: block;
width: 80px;
text-align: center;
}

/*設(shè)置正常狀態(tài)英文菜單隱藏*/
.top-nav li a span{
display:none;
}

/*鼠標(biāo)移動(dòng)到鏈接上面時(shí)將英文菜單顯示*/
.top-nav li a:hover span{
display:block;
}

/*鼠標(biāo)移動(dòng)到鏈接上面時(shí)將中文菜單位置上移*/
.top-nav li a:hover{
margin-top:-20px;
}