Why my heights fixer code work wrong when browser window restored after being maximised?

后端 未结 3 428
谎友^
谎友^ 2020-12-21 00:24


    
        test manual height calculations
     

         


        
3条回答
  •  有刺的猬
    2020-12-21 01:14

    I had the exact same issue working on a project. It ended up that the best trick to end up with a cross-browser solution was actually absolute positionning.

    .wrap{background:pink;position:absolute;top:0;left:0;right:0;bottom:0}
    

    You are allowed to be sceptical, but have a look at this jsfiddle ;)

    http://jsfiddle.net/evomk0zu/

提交回复
热议问题