Content inside iframe match width of parent div

时光毁灭记忆、已成空白 提交于 2019-12-13 17:14:03

问题


I have a responsive website that changes style sheets depending on browser width. I have a webform embeded through an iframe. The webform it's self is also responsive. Is there anyway to have the webform width reflect the parent div width.


回答1:


iframe { position: relative; width: 100% }


来源:https://stackoverflow.com/questions/16890025/content-inside-iframe-match-width-of-parent-div

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!