/// <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>

 

相关文章:

  • 2021-09-03
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-07-18
  • 2021-12-15
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案