docment.write一个层,如何显示 display:none; 隐藏了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没执行啊。jcaShow();document.write('<div id="djcamain" style="display:none;position:fixed;height:268px;width:210px;background:#FF0000;border:2px solid #cecece;z-index:2;padding:12px;font-size:13px;"><table><tr><td>年:<input id="txYear" width=50px size=8 />月:<input id="txMonth" width=30px value=01 size=6 /></td></tr></table></div>');function jcaShow(obj){ var windowWidth = document.documentElement.clientWidth; var windowHeight = document.documentElement.clientHeight; var popupHeight = $("#djcamain").height(); var popupWidth = $("#djcamain").width(); $("#djcamain").css({ "position": "absolute", "top": windowHeight/2-popupHeight/2, "left": windowWidth/2-popupWidth/2 }).fadeIn("slow");}jcaShow(); 不是隐藏了, 我 $("#djcamain").show()也是一样的。 先直接document.write一个字符串试试,没看到的话那就debug看有没执行到啊 不好意思, 是我忘记引入jquery.js库了。。 关于js操作table的tr td 找到答案就结贴 大家端午快乐 javascript中位运算精度问题 同服务器上的两个html网页怎么传递数据? 怎么验证文框中输入时间(带分秒)的合法性,格式如2002-7-26 11:03:00 在标签里如何调用javascript函数? 如何把背景图设为与窗口大小一样 请问,使用javascript可以取得客户端的硬件信息吗? 小键盘上的1,2,3,4,5他们的码为多少?(急用) 对于tree组件的使用 为什么replace无法替换字符呢 关于一个批量仿select的jquery代码
jcaShow();document.write('<div id="djcamain" style="display:none;position:fixed;height:268px;width:210px;background:#FF0000;border:2px solid #cecece;z-index:2;padding:12px;font-size:13px;"><table><tr><td>年:<input id="txYear" width=50px size=8 />月:<input id="txMonth" width=30px value=01 size=6 /></td></tr></table></div>');function jcaShow(obj){
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupHeight = $("#djcamain").height();
var popupWidth = $("#djcamain").width();
$("#djcamain").css({
"position": "absolute",
"top": windowHeight/2-popupHeight/2,
"left": windowWidth/2-popupWidth/2
}).fadeIn("slow");
}
jcaShow();