开发者

jquery fade in adding inline style to span

When using the fadeIn for a hidden span element, jquery adds display:inline to the inline styles. I understand why it does this because by default a span is a inline element although how do I set it to always display:block;

I have to use a <span> because:


You can use .animate() instead of .fadeIn(), which (I think) won't change the display property while animating.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜