在弹出窗口期间有没有办法加载CSS?
function kmt_ShowBoxPopup(targetDivID, aTag)
{
var orgin_div_content=document.getElementById(targetDivID).innerHTML;
//alert(targetDivID);
showBoxPopupWin =window.open("",targetDivID,'height=400,width=710,screenX=250,screenY=80, scrollbars=yes');
showBoxPopupWin.document.write ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">'+
'<html><head><title>'+targetDivID+'</title></head><body>'+orgin_div_content+'</body</html>');
if (window.focus) {showBoxPopupWin.focus()}
}
<a class="cs_popuplink" onclick="kmt_ShowBoxPopup('BOX02_01',this); return false; ">show me how..</a>
<div id = "BOX02_01" STYLE=display:none>
p
p
p
</div>
Run Code Online (Sandbox Code Playgroud)
这是我的代码.我想在showBoxPopupwin.document.write函数中加载一个CSS.可能吗?
欢呼,清
| 归档时间: |
|
| 查看次数: |
4618 次 |
| 最近记录: |