javascript – Jquery淡入.after()?

简单但真的无法让它工作,这是我的脚本……
$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px;"></div>');

我怎样才能让它淡出而不仅仅是弹出?之后或之前放入fadeIn().after()不起作用?

解决方法

$('body').after('<div id="lightBox" style="height: ' + htmlHeight + 'px; display:none;"></div>');
$('#lightBox').fadeIn();

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...