控制弹出窗口样式
/// <summary> /// 弹出框样式 /// </summary> public string StrFrameCss = Common.TableSink; //控制弹出窗口样式 <script type="text/javascript"> function OpenWindow() { window.open(); window.close = null; } window.onload = function () { loadcss(); } function loadcss() { var head = document.getElementsByTagName('head').item(0); var fileref = document.createElement("link"); fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); var css = '<%=StrFrameCss %>'; fileref.setAttribute("href", "http://www.cnblogs.com/../Css/Table/" + css + "/css.css"); //这里注意文件页面所在文件夹下的第几层 head.appendChild(fileref); } </script>