81,092
社区成员
发帖
与我相关
我的任务
分享
<div class="edit" id="ruleDiv1" style="display: none;">
<h4>积分设置</h4>
<div>
<p>个人比赛取:
<select><option selected='selected'>444</option></select>名
</div>
</div>
用这个插件弹出这个层正常,单一旦这个层内的元素存在有js生成的元素时,就不会在页面上弹出,而是在一个空白页面上显示这个层内的内容。
<div class="edit" id="ruleDiv1" style="display: none;">
<h4>积分设置</h4>
<div>
<p>个人比赛取:
<script language="javascript">
document.write("<select><option selected='selected'>temp</option>");
document.write("</select>名");//这个就不能弹出,郁闷。。
</script>
</div>
</div>
var arr = ;//这里可以请求服务器获取下拉框数组对象
var url = 'a.html';
$.get(url, function(data){
$.blockUI({
draggable: false,
message: data,
theme:true,
showOverlay:true,
baseZ:1000+1,
title:"<font style='color: white;'>xxxxx</font>",
themedCSS: {
overflow:'hidden',
draggable: false,
cursor:'default',
background: '-webkit-gradient(linear, 0 0, 0 100%, from(#2c2e34) , color-stop(50%, #212427), color-stop(100%, #18181c))',
top: ($(window).height() - 650)/2 + 'px',
left: ($(".substrate").width() - 400) /2 + 'px',
width: 530,
height: 380
}
});
//这里给下拉框对象赋值
})