【发布时间】:2011-09-23 01:40:54
【问题描述】:
如果元素在 CSS 中具有 display:none,则在 jQuery 中将不透明度从 0 设置为 1 不会使元素可见。
为什么?
我需要在 animate() 中添加什么使其可见?
el.css({
opacity: 0,
left: - 200
}).stop().animate({
opacity: 1,
left: 0
}, {
duration: 333
});
【问题讨论】:
标签: jquery css jquery-animate