国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

z-index does not work in Internet Explorer with pd

bladefury / 1000人閱讀

I know of one technique to reliably occlude windowed controls in IE with other elements, but you"re not going to like it.

Background: windowed and windowless elements

IE categorises elements into two types: windowed and windowless. Regular elements like div and input are windowless, rendered directly by the MSHTML engine. Windowed elements, however, are rendered in a separate MSHTML plane and get painted over any elements intruding in the space reserved for them. They respect z-index for each other, but always paint on top of windowless elements.

The only exception to this rule is iframe. In IE 5, iframe was a windowed element. This was changed in IE 5.5; it is now a windowless element, but for backwards compatibility reasons it will still draw over windowed elements with a lower z-index. Crucially, it also respects z-index for windowless elements—so if you position an iframe over a windowed element, any windowless elements you position over the iframe will be visible.

What this means

Essentially, the PDF is painted on top of the regular page content—like select elements were until IE 7. The easiest fix is to use another iframe positioned between your content and the PDF.

Demo

jsFiddle: http://jsfiddle.net/Jordan/gDuCE

Code

HTML:

my text that should be on top

CSS:

#outer {
    position: relative;
    left: 150px;
    top: 20px;
    width: 100px;
    z-index: 2;
}

    #inner {
        background: red;
    }

    .cover {
        border: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: -1;
    }

#pdf {
    position: relative;
    z-index: 1;
}

Support

This has been tested and should work in IE 7–9. If you feel persnickety about it showing up in the DOM for other browsers, you can add it with JavaScript or wrap it in an IE-only conditional comment:


文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://specialneedsforspecialkids.com/yun/111656.html

相關(guān)文章

  • z-index does not work in Internet Explorer with pd

    I know of one technique to reliably occlude windowed controls in IE with other elements, but youre not going to like it. Background: windowed and windowless elements IE categorises elements into two t...

    suemi 評論0 收藏0
  • IE中iframe標(biāo)簽顯示在DIV之上的問題解決方案

    摘要:在之外呈現(xiàn)的元素是窗口化的例如,選擇由呈現(xiàn)和控件。他們尊重彼此的順序,但占據(jù)一個單獨的平面,該平面繪制在所有無窗元素之上。在做網(wǎng)頁時前端時,使用IE打開時會出現(xiàn)標(biāo)題欄DIV被遮擋PDF遮擋, ?后在stackoverflow中查到是IE瀏覽器的問題:鏈接https://stackoverflow.com/questions/12911428/z-index-does-not-work-in...

    MadPecker 評論0 收藏0
  • 前端基礎(chǔ)知識之HTML

    摘要:是文件的第一行代碼,意味著它的前面有注釋都不行。所以要要寫在標(biāo)簽前面,而且它不屬于標(biāo)簽。為了兼容以前的網(wǎng)站,所以產(chǎn)生了,瀏覽器會按照標(biāo)準(zhǔn)以前的簡析方式去工作。但是他們在過期時間上有區(qū)別 [1: What does a doctype do?] 1: doctype是html文件的第一行代碼,意味著它的前面有注釋都不行。所以要要寫在標(biāo)簽前面,而且它不屬于html標(biāo)簽。 2: doctyp...

    cfanr 評論0 收藏0
  • Pythonic “Data Science” Specialization

    摘要:溫習(xí)統(tǒng)計學(xué)的知識為更深層次的學(xué)習(xí)做準(zhǔn)備在的演講中說就是我們理解但不知道另外的是如何的我在臺下想對于那可以理解的我好像都只懂了參考標(biāo)準(zhǔn)高效的流程課程用的是我不想再學(xué)一門類似的語言了我會找出相對應(yīng)的和的來源流程什么是干凈的一個變 Why The Data Science Specialization 溫習(xí)統(tǒng)計學(xué)的知識, 為更深層次的學(xué)習(xí)做準(zhǔn)備 Andrew Ng 在 2015 GTC ...

    jasperyang 評論0 收藏0
  • Bootstrap 之 Metronic 模板的學(xué)習(xí)之路 - (4)源碼分析之腳本部分

    摘要:修復(fù)后得到合法的后在由布局引擎建立相應(yīng)的對象。在標(biāo)簽放置于標(biāo)簽之后時,源碼被所有瀏覽器泛指上常見的修復(fù)為正常形式,即。上一篇之模板的學(xué)習(xí)之路源碼分析之部分下一篇之模板的學(xué)習(xí)之路主題布局配置 上篇我們將 body 標(biāo)簽主體部分進(jìn)行了簡單總覽,下面看看最后的腳本部門。 頁面結(jié)尾部分(Javascripts 腳本文件) 我們來看看代碼最后的代碼,摘取如下: ...

    piglei 評論0 收藏0

發(fā)表評論

0條評論

最新活動
閱讀需要支付1元查看
<