1

我有来自教程的以下代码(附加链接),并且图像容器动画到中间位置!但我希望它在左下角!无论我尝试什么都是错误的或无法在另一个屏幕尺寸上重现!这对我来说毫无意义!请帮忙!!

// animate the images container to the position where is going to be on fullview
var thumbsstyle     = {
    left    : $(window).width() - $thumbsWrapper.width() - 25 + 'px',  // 25 is the margin left / right of the fullview thumbs-wrapper
    top: ($(window).height() / 2) - ($thumbsWrapper.height() / 2) - 22 + 'px' // 10 is the margin top / bottom of the fullview thumbs-wrapper
};
$thumbsWrapper.stop().applyStyle( thumbsstyle, $.extend( true, [], { duration : animspeed, easing : animeasing} ) );
4

1 回答 1

0

很简单,只要按left原样做就行了。0bottom0

未经测试的代码

var thumbsstyle = {
    left: 0
    bottom: 0
};
$thumbsWrapper.stop().applyStyle(thumbsstyle, $.extend(true, [], {
    duration: animspeed,
    easing: animeasing
}));
于 2013-06-20T19:03:15.757 回答