我怎样才能动画与jQuery的属性值(不是样式属性)? [英] How can I animate an attribute value (not style property) with jQuery?

查看:91
本文介绍了我怎样才能动画与jQuery的属性值(不是样式属性)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要动画iframe的高度属性,但似乎是动画的功能只接受的样式属性。任何对此的思考?

I need to animate the height attribute of iframe, but seems like the animate function accepts style properties only. Any thoughts on this?

推荐答案

iframe的高度属性和CSS height属性的行为方式相同。因此,只要设置高度在CSS中,而不是作为一个属性。

Iframe height attribute and CSS height attribute applied to an iframe act the same way. So just set the height in css rather than as an attribute.

这篇关于我怎样才能动画与jQuery的属性值(不是样式属性)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆