所以我有代碼爲div。我需要的只是讓div淡出,然後在淡入淡出之後去除父親的孩子。需要onclick事件,使div淡出「THEN」刪除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鏈接。
要刪除的淡出或DIV文本 – Rex