乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      showModalDialog的title問題(模態(tài)窗口標(biāo)題顯示問題

       WindySky 2009-07-17

      項(xiàng)目中用到了模態(tài)窗口:

      /*用途:彈出模式窗口
      此功能只能在IE5.0以上瀏覽器使用。
      彈出窗口的風(fēng)格為居中,沒有狀態(tài)欄,沒有IE按鈕,菜單,地址欄
      輸入:
      strUrl: 彈出窗口內(nèi)顯示的網(wǎng)頁的地址
      winWidth: 彈出窗口的寬度,單位為px
      winHeight: 彈出窗口的高度,單位為px
      winLeft: 彈出窗口的左坐標(biāo),單位為px
      winTop:     彈出窗口的頂坐標(biāo),單位為px
      返回:
      如果通過驗(yàn)證返回true,否則返回false
      */

      function showModal( strUrl,winWidth,winHeight){
      var left = "", top = "";
      // alert(arguments[3] + ":" + arguments[4]);
      if(arguments[3] != null) left = "dialogLeft:" + arguments[3] + "px;"
      if(arguments[4] != null) top = "dialogTop:" + arguments[4] + "px;"
      return window.showModalDialog(strUrl,
                window,
                "dialogWidth:"+ winWidth + "px;" + "dialogHeight:"+winHeight + "px;"
                + left + top
                + "directories:yes;help:no;status:no;resizable:no;scrollbars:yes;");

      但是很奇怪:每個(gè)彈出的模態(tài)窗口的標(biāo)題欄都是同一的名字“--網(wǎng)頁對(duì)話框

      好奇怪呀!

      我在彈出窗口的頁面head中加了<title>增加節(jié)目</title>,但是還是沒有顯示出來標(biāo)題!

      原來頁面的寫法是這樣的:

      <%@include file="/internet/common.jsp"%>
      <html>
      <SCRIPT language="JavaScript" src="/pageComponent/resources/scripts/dataformcheck.js"></SCRIPT>
      <SCRIPT language="JavaScript" src="/pageComponent/resources/scripts/calendar.js"></SCRIPT>
      <SCRIPT language="JavaScript" src="/fbtools/page/hiddensubmit.js" type="text/javascript"></SCRIPT>
      <link rel="stylesheet" href="/fbrole/theme/style.css" type="text/css">
      <link rel="stylesheet" href="/pageComponent/resources/theme/style.css" type="text/css">
      <head>
      <title>增加節(jié)目</title>
      <base target="_self">
      </head>
      <body>

      。。。。。。。

      修改為:

      <%@include file="/internet/common.jsp"%>
      <html>
      <head>
      <title>增加節(jié)目</title>
      <SCRIPT language="JavaScript" src="/pageComponent/resources/scripts/dataformcheck.js"></SCRIPT>
      <SCRIPT language="JavaScript" src="/pageComponent/resources/scripts/calendar.js"></SCRIPT>
      <SCRIPT language="JavaScript" src="/fbtools/page/hiddensubmit.js" type="text/javascript"></SCRIPT>
      <link rel="stylesheet" href="/fbrole/theme/style.css" type="text/css">
      <link rel="stylesheet" href="/pageComponent/resources/theme/style.css" type="text/css">
      <base target="_self">
      </head>
      <body>

      問題就解決了?。?!

      原來,這里我犯了2個(gè)錯(cuò)誤:

      1.頁面引入js和css的內(nèi)容都需要寫在head中

      2.如果要title顯示出來,<title>增加節(jié)目</title>必須寫在head標(biāo)簽內(nèi)的最上面第一位。

      由此看來,模態(tài)窗口對(duì)title的位置要求很嚴(yán)格,必須是嚴(yán)格的放在head標(biāo)簽的第一位。而其他窗口(比如window.open())則沒有過多的敏感,只要寫上就會(huì)顯示,忽略了那些繁瑣的檢驗(yàn)錯(cuò)誤。

      注意:

      我上面的寫法會(huì)發(fā)現(xiàn),標(biāo)題變?yōu)椋涸黾庸?jié)目 -- 網(wǎng)頁對(duì)話框

      呵呵。。。。 討厭的“網(wǎng)頁對(duì)話框”還在。怎么辦呢?可以在<title>增加節(jié)目</title>title名字后加空格,把“--網(wǎng)頁對(duì)話框”擠走。比如:

      <title>增加節(jié)目            </title>

      不過最后會(huì)出現(xiàn)三個(gè)...代替了原來的“--網(wǎng)頁對(duì)話框”,標(biāo)題顯示如下:

      增加節(jié)目     ...

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多