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


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


          網站導航:
           
          主站蜘蛛池模板: 扎囊县| 上饶市| 观塘区| 富顺县| 白水县| 扎兰屯市| 常熟市| 孙吴县| 新兴县| 鲁甸县| 榕江县| 钟山县| 河曲县| 湘西| 澄迈县| 广东省| 铁力市| 惠水县| 隆化县| 灵川县| 英吉沙县| 福清市| 怀来县| 乳山市| 江阴市| 云和县| 休宁县| 三穗县| 札达县| 贵州省| 阿坝| 兴义市| 中山市| 哈尔滨市| 阿拉善左旗| 乐安县| 鄂尔多斯市| 嵊泗县| 乌海市| 荃湾区| 新化县|