Dan*_*ern 1 jquery jquery-animate
我有一个班级:cash_warn.我想用jquery动画更改span的颜色,但它不起作用.
我现在拥有的:
$('.cash_warn').animate({ color: "#ff8484" }, 500);
Run Code Online (Sandbox Code Playgroud)
另一方面,这确实可以正常工作,但它没有动画:
$('.cash_warn').css('color',"#ff8484");
Run Code Online (Sandbox Code Playgroud)
HTML:
<div class=" friends-shadow detailreward3 detailreward" style="position:absolute;
height:71px; width:238px; left: 453px; top: 40px; padding:20px; z-index:99; font:
bold 11px Helvetica, Arial, sans-serif;">
<span style=" color:#fff" class="cash_warn">
text
</span>
<br /> <br />
more text
</div>
Run Code Online (Sandbox Code Playgroud)
什么出了什么问题?
| 归档时间: |
|
| 查看次数: |
2847 次 |
| 最近记录: |