Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要 div/span 内的内容的上滑和上滑效果。例如,
HTML 代码:
<span id="test" style="background-color:#212121;" ></span>
查询:
$("#test").text('testContent').slideUp(600);
从上面的代码中,我只希望“testcontent”向上滑动,但是,我的整个跨度都向上滑动。谁能帮我 ?????????
注意: 如果我使用淡入/淡出效果,它可以正常工作。
<span>如果你想实现这一点,你应该将该内容添加到另一个元素中
<span>
$('<span>testContent</span>').appendTo("#test").slideUp(600);