我试图让图像在页面加载时像在标题下方的中间区域一样向上滑动。到目前为止,这是我的 jQuery:
$(function() {
$("#product_img").on('load', function() {
$(this).show('slide', {
direction: 'up' }, 2000); });
});
我也试过这个:
$("#product_img").animate({'up':200},255,'linear', function() {console.log('Done Animation'); })
它在 Chrome 调试器中打印“完成动画”..但它不显示图像。:/ 现在的图像只是#product_img { display: none; } 在我的 CSS 中。有什么我想念的吗?丁:
谢谢你的帮助!