我不想爲我的網站的iPad版本製作特殊菜單。使用圖片展開菜單
它應該是這樣的: http://itu.dk/people/mbul/humlum/images/ipad_menu.png
點擊圖1和菜單展開(以圖2)和環節得到明顯。當您點擊IMG 2外部時,它會隨鏈接一起消失,因此只有IMG 1可見。
到目前爲止,我已經走到這一步,但它並沒有真正做的伎倆:
<div class="nav_mobile_container">
<div class="nav_mobile_elements">
<div class="nav_mobile"></div>
</div>
</div>
div.nav_mobile_container{
position: fixed;
top: 0px;
left: 0px;
}
div.nav_mobile_elements{
display: inline-block;
}
div.nav_mobile_elements a{
vertical-align: top;
display: inline-block;}
div.nav_bookmark:hover{
display: inline-block;
}
.nav_mobile{
width:70px;
height:70px;
background-image:url('images/menu_small.png');
display: inline-block;
}
.nav_mobile:hover{
width:496px;
height:500px;
background-image:url('images/menu_small_expanded.png');
}
我會很感激這個一個CSS解決方案,如果可能的。
謝謝!
我們會很感激一個[的jsfiddle(http://jsfiddle.net/):) – Brewal