IFRAME and conflicting absolute positions

后端 未结 5 948
迷失自我
迷失自我 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条回答
  •  猫巷女王i
    2020-12-16 11:49

    Why don't you use height & width? You'd still get an absolute position by setting top/bottom & left/right, as in the example below.

    
    
        
            
        
        
            

    This works for me (Tested on IE9).

提交回复
热议问题