관리 메뉴

취미개발 블로그와 마음수양

불러오는 iFrame 길이에 따른 바깥쪽 iFrame 에 대한 고찰 본문

카테고리 없음

불러오는 iFrame 길이에 따른 바깥쪽 iFrame 에 대한 고찰

아라한사 2019. 8. 29. 16:11

어쩌다 이런 헬파티에 들어와서 ;; 

 

https://stackoverflow.com/a/22086876

 

Resize Cross Domain Iframe Height

I'm trying to change the iframe height parameter to the same px of the page being loaded within the iframe. The page that's being loaded in the iframe is coming from another domain. Different page...

stackoverflow.com

 

여기에 답변이 많이 쓰여져있는데

크로스도메인여부에 따라서 좀 달라지게 된다

 

우선 참조해야될 링크 
https://css-tricks.com/cross-domain-iframe-resizing/

 

Cross Domain iframe Resizing | CSS-Tricks

css-tricks.com

 

그리고 라이브러리가 있다고하더라~
https://github.com/davidjbradshaw/iframe-resizer

 

davidjbradshaw/iframe-resizer

Keep same and cross domain iFrames sized to their content with support for window/content resizing, in page links, nesting and multiple iFrames - davidjbradshaw/iframe-resizer

github.com

 

한국어 링크

 

https://juitstory.tistory.com/entry/cross-domain-iframe-resize?category=513886

 

결국은 불러와지는 자식아이프레임에서 허용을 해줘야 된다는 이야기인가..~ 흠