How exactly can I replace an iframe with a div and Javascript?

前端 未结 5 1939
再見小時候
再見小時候 2020-12-28 20:03

I have a page that loads an external HTML page into an iFrame. There are two problems I am facing with this:

  1. The iFrame is always a fixed height, but I want it
5条回答
  •  一整个雨季
    2020-12-28 20:28

    #mydiv {
          all: initial; /* blocking inheritance for all properties */
    }
    

    from How To Isolate a div from public CSS styles?

    This solution saved my day.

提交回复
热议问题