同問,為什么left:-600px;寫進css里,那個右箭頭沒有反應了啊
同問,為什么left:-600px;寫進css里,那個右箭頭沒有反應了啊?
css代碼 #list{left:-600px}
?js代碼 next.onclick=function(){ ? ? ? ? ? ? ? ? list.style.left=parseInt(list.style.left)-600 +'px'; ? ? ? ? ? ?}
同問,為什么left:-600px;寫進css里,那個右箭頭沒有反應了啊?
css代碼 #list{left:-600px}
?js代碼 next.onclick=function(){ ? ? ? ? ? ? ? ? list.style.left=parseInt(list.style.left)-600 +'px'; ? ? ? ? ? ?}
2015-12-24
舉報
2016-05-09
有沒有其他辦法來獲取css中的left的值
2016-01-01
已經(jīng)知道了。這個style.left只支持行內(nèi)樣式
2015-12-25
left的應用。前提是元素有定位absolute 或者fixed 或者relative
2015-12-25
給一下完整代碼看一下