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

シンプルです。それを行う必要left0あります。bottom0

テストされていないコード

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