IFRAME and conflicting absolute positions

后端 未结 5 944
迷失自我
迷失自我 2020-12-16 11:04

I would like to have an IFRAME dynamically sized using the following CSS:

#myiframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    rig         


        
5条回答
  •  既然无缘
    2020-12-16 11:48

    html,body {
        margin:0;
        padding:0;
        height:100%;
        min-height:100%;
    }
    #myiframe {
        width:100%;
        height:100%;
        border:0;
    }
    

    work fine for me even with IE7.

提交回复
热议问题