网上找的代码太多,自己用JQuery写一个横向滑动切换效果,代码超少
CSS代码:
?
回帖的问的比较多,解释一下,CSS中的两个Width,*width是针对IE的,因为IE的width是包括边框border的,而其它浏览器是不包括的,所以IE的width比其它的多2个像素.
<div id="sub2" style="background:#0000FF;"></div>
<div id="sub3" style="background:#00FFFF;"></div>
<div id="sub3" style="background:#FF0000;"></div>
</div>
</div>
<input type="button" onclick="slideleft();" value="slide"></input></pre>
?</div>
<p>?</p>}, 1000); // specific the animation time
see, so easy.....}, 1000); // specific the animation time
see, so easy.....
这个direction 是指什么?}, 1000); // specific the animation time
see, so easy.....
这个direction 是指什么?
direction指的是滑动的方向}, 1000); // specific the animation time
see, so easy.....
这个direction 是指什么?
direction指的是滑动的方向
我试了,不行啊.....
除了JQuery核心库,是不是还要导什么JS?
官方文档上也没有找到找到这种用法啊}, 1000); // specific the animation time
see, so easy.....
这个direction 是指什么?
direction指的是滑动的方向
我试了,不行啊.....
除了JQuery核心库,是不是还要导什么JS?
官方文档上也没有找到找到这种用法啊
sorry,我忘记说了,这个是需要使用ui的js的,以下是例子
21 楼 hjiuokpl1314 2011-04-26 貌似IE7下有问题 22 楼 redstarofsleep 2011-04-26 hjiuokpl1314 写道貌似IE7下有问题
厄...我试过IE6和IE8
IE7下有问题吗?哪里不对