jquery uploadify+jquery ui Dialogはieで欠落したオブジェクトの問題解決策を報告する
2500 ワード
, uploadify+dialog ie , OK, , , 。 , dialog, showDialog , , , , 。
1.
/* box */
.box{position:absolute;width:400px;left:50%;height:auto;z-index:100;background-color:#fff;border:1px #fff solid;padding:1px;}
.box h2{height:25px;font-size:14px;background-color:#CCC;position:relative;padding-left:10px;line-height:25px;color:#000;}
.box h2 a{position:absolute;right:5px;font-size:12px;color:#fff;}
.box .mainlist{padding:10px;}
#TB_overlayBG{background-color:#666;position:absolute;z-index:99;left:0;top:0;display:none;width:100%;height:100%;opacity:0.5;filter: alpha(opacity=50);-moz-opacity: 0.5;}
2.
<div id="TB_overlayBG"></div>
<div id="uploadFileDialog" class="box" style="display:none">
<h2>
<span> <a href="#" class="close"> </a>
</span>
</h2>
<div class="mainlist">
<input id="uploadFile_upload" name="uploadFile_upload" type="file" multiple="true">
<div class="form-ele-wrap h200 enable-scroll">
<div id="uploadFile_queue"></div>
</div>
<div class="btn-panel btn-dialog">
<a id="uploadFile_uploadBtn" class="buttonClass"> </a>
<a id="uploadFile_uploadCancel" class="buttonClass"> </a>
</div>
</div>
</div>
3.js
function openDialog() {
$("#TB_overlayBG").css({
display : "block",
height : $(document).height()
});
$("#uploadFileDialog").css({
left : ($("body").width() - $(".box").width()) / 2 - 20
+ "px",
top : ($(window).height() - $(".box").height()) / 2
+ $(window).scrollTop() + "px",
display : "block"
});
}
function closeDialog() {
$("#TB_overlayBG").css("display", "none");
$("#uploadFileDialog").css("display", "none");
}
4.
[img] [/img]