我正在处理淡入淡出的div背景,我发现了一个例子:是唯一的问题,如果隐藏整个DIV并淡出它,但我只需要淡入淡出DIV背景。因此,DIV的文本或一些html将从一开始就显示出来,而它的背景在加载时会逐渐褪色。<div style="border: 1px solid #000000;">
<div class="feature">some text and info here<
<script src="jquery.js"></script>// This version runs the function *immediately*$(document.body).fadeIn(1000);</script></html>
如你所见,网页会一直等待,直到加载完毕,然后淡入现在,