Setting iFrame CSS to display:none during load

前端 未结 5 1056
傲寒
傲寒 2021-01-11 12:46

I have this:

5条回答
  •  醉梦人生
    2021-01-11 13:18

    There shouldn't be a problem but if there is, a good trick can be to move the element offscreen rather than hiding it. You can create a class like

    .offscreen{
        position: absolute;
        left: -5000px;
    }
    

    which you can add and remove as needed.

提交回复
热议问题