Content inside iframe match width of parent div

2019-08-04 00:50发布

问题:

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% }