2014-11-06 46 views
0

我有問題,我無法完全按照iframe的寬度和高度適合外部web內容有人可以幫助嗎?如何適合外部網站與iframe寬度

我通過表單發佈鏈接,因爲它會像發佈這些值這樣..我給這個YouTube和谷歌只是例如。

外部鏈接形式:

<form method="post" action="https://www.youtube.com" target="myFrame" > 
    <input type="hidden" name="pid" value="[email protected]!etars16387"/> 
    <input type="hidden" name="apq" value="1"/> 
    <input type="image" name="apig" src="https://www.google.com/images/img.gif"/> 
</form> 

的Iframe:

<iframe frameborder="0" scrolling="yes" width="100%" height="841" name="myFrame" id="myFrame"> 
    <p>iframes are not supported by your browser.</p> 
</iframe> 

請幫我...謝謝&方面的

回答

0

YouTube或谷歌不支持這種嵌入的。

嘗試

"//www.youtube.com/embed/bHQqvYy5KYo" 

,而不是

"https://www.youtube.com"