Vikings

          IE6下 SELECT 標記 忽略 Z-index BUG

          Bug描述: SELECT elements ignore Z-index ("windowed element" problem)
          連接:http://www.throbs.net/web/articles/IE-SELECT-bugs/#ieZIndex

          問題原因:
          1. select  html標記在IE6下的解析不管Z-index
          2. div 不能遮蓋select,

          解決思路:
          1. 在select上用iframe遮蓋
          2. 在iframe上用div遮蓋
          3. iframe的width,height,top,left與div一樣大.


          示例代碼
          #zindexDiv{
          position:absolute;
          z-index:50;
          width:expression(this.nextSibling.offsetWidth);
          height:expression(this.nextSibling.offsetHeight);
          top:expression(this.nextSibling.offsetTop);
          left:expression(this.nextSibling.offsetLeft);
          /*background-color:green;?ff????????,????????????????*/
          }

          #divUp{
          z-index:99;
          position:absolute;
          background-color:red;
          width:100;
          height:18;
          overflow:hidden;
          height:60px;
          }

          #ddlTest{
          width:200;
          z-index:1;
          }
          </style>


          <body>
          <iframe id="zindexDiv" frameborder="0"></iframe>
          <div id="divUp">aaaaaaa<br>bbbbbbb<br>ccccccc</div>

          posted on 2008-06-27 11:04 Vikings 閱讀(1866) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 固原市| 安仁县| 临潭县| 绥滨县| 盈江县| 镶黄旗| 咸宁市| 昭觉县| 高台县| 旬阳县| 郁南县| 永安市| 古交市| 花莲县| 醴陵市| 安吉县| 鄂托克旗| 扎鲁特旗| 紫金县| 武夷山市| 和静县| 胶南市| 丰宁| 固阳县| 昌宁县| 页游| 万安县| 卫辉市| 徐闻县| 比如县| 青河县| 涞源县| 贡嘎县| 六盘水市| 丰原市| 镇安县| 临清市| 枣强县| 江川县| 广饶县| 定西市|