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 閱讀(1873) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 柘城县| 滁州市| 丽江市| 保康县| 冷水江市| 鹤山市| 塔城市| 青田县| 元阳县| 海原县| 呼图壁县| 张家港市| 南康市| 青田县| 芜湖市| 营口市| 昆明市| 西宁市| 黄大仙区| 洛南县| 雷山县| 肥东县| 太原市| 漠河县| 三台县| 柳河县| 玉溪市| 哈尔滨市| 施甸县| 河北区| 宣威市| 塔城市| 辽阳市| 长寿区| 马龙县| 牟定县| 镇巴县| 繁峙县| 海兴县| 二连浩特市| 罗定市|