當頁面加載時,我需要滑動div菜單100%的寬度。但它不工作:幻燈片從右到左100%? CSS-JQUERY
CSS
#menu{
position: fixed;
z-index: 101;
top:0;
color:#fff;
font-weight:bold;
font-size: 10px;
height:50px;
width:100%;
min-width:50px;
background:red;
}
JQUERY
$(document).ready(function(){
$("#menu").animate({ left: '0'}, 'fast');
});
我要的是這個div,當頁面加載時,開始在右上角出現,直到離開,留在頂部之後100%寬度。 http://jsfiddle.net/12tx42q4/
謝謝
只能菜單DIV中滑動元素橫盤由於菜單本身是100%的寬 – DieVeenman
你被0移動它,所以offcourse什麼也不會發生。猜猜這是你想要的? http://jsfiddle.net/12tx42q4/7/ – timo