jQuery Animate 边框在这段代码中似乎效果不佳: http://jsbin.com/ewuyup/13/edit
有没有人知道如何修复它?
我在 Animate 的 jQuery 网站上看到了这个。
Shorthand CSS properties (e.g. font, background, border) are not fully supported. For example, if you want to animate the rendered border width, at least a border style and border width other than "auto" must be set in advance. Or, if you want to animate font size, you would use fontSize or the CSS equivalent 'font-size' rather than simply 'font'.
希望有人能帮助我。
最佳答案
我设法做到了:在 css 中设置边框样式和颜色,然后将 borderWidth:"2px",
放入您的动画中:
关于jQuery 动画边框似乎不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12768376/