auto re-sizing iframe that dynamically changing height (smaller or bigger)

前端 未结 2 1202
感情败类
感情败类 2021-01-16 20:39

I know there\'s a lot of post about re-sizing iframe but all i found is this code:



        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-16 20:55

    Why not just do:

    height: auto;
    max-height: 1200px;
    

    On the iframe itself within style="" or thru a css doc.

    If height is set to auto, then it won't need to use the 1200px for the index.php. But when displaying the profile.php it's allowed to use a maximum of 1200px.

提交回复
热议问题