所以我有 div 的代码。我所需要的只是让 div 淡出,然后在淡出后删除父子。
HTML
<div onclick="fadeOut(this)" id="fadeOut">
<div id="divText">
This is a simple div with some text in it. This is another line of text.
All I am doing is continuing adding text to my div container. If I keep adding text guess what will happen. You have to scroll to see the rest!
</div>
</div>
CSS 位于 JSFiddle 链接中。