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)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 湘潭市| 丹阳市| 青田县| 双牌县| 鄱阳县| 阿克苏市| 镇赉县| 永胜县| 西青区| 罗定市| 象山县| 老河口市| 望谟县| 独山县| 平塘县| 玛沁县| 托里县| 武山县| 台山市| 鸡东县| 淮北市| 云浮市| 寻甸| 明光市| 安庆市| 湖州市| 安阳县| 兴海县| 万荣县| 日喀则市| 大安市| 祁连县| 乐都县| 汉寿县| 龙门县| 宁乡县| 射洪县| 怀化市| 砚山县| 灌南县| 南投县|