2014-02-26 55 views
2

需要您的幫助,請認爲此代碼有問題?它不顯示任何東西?iframe無法正常顯示

<iframe style='overflow: hidden; border: 0; width: 720px; height: 362px' src='<iframe width="600" height="480" frameborder="0" src="http://embed.movshare.net/embed.php?v=ksm4jw0p1e6yv" scrolling="no"></iframe> 

回答

1

看來你已經嵌套兩個iframe到對方,這不像你試過的那樣工作。我假設你只是想在iframe中顯示http://embed.movshare.net/embed.php?v=ksm4jw0p1e6yv。代碼如下:

<iframe style="overflow: hidden; border: 0; width: 720px; height: 362px" 
    src="http://embed.movshare.net/embed.php?v=ksm4jw0p1e6yv" scrolling="no"> 
</iframe> 

看到它住在this JSFiddle。從谷歌

0

例如IFRAME:

<iframe class="gmap" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
src="https://maps.google.co.in/maps/ms?msa=0&amp;msid=212838658933937169734.0004f3360c6126926e728&amp;ie=UTF8&amp;ll=-6.947807,107.612513&amp;spn=0,0&amp;t=m&amp;output=embed"> 
</iframe> 

您的代碼

<iframe style=' border: 0; width: 720px; height: 362px' src='<iframe width="600" height="480" frameborder="0" src="http://embed.movshare.net/embed.php?v=ksm4jw0p1e6yv" scrolling="no"></iframe> 

這是你的代碼的修正:

<iframe src="http://embed.movshare.net/embed.php?v=ksm4jw0p1e6yv" style="border:0;width:720px;height:362px" frameborder="0"></iframe>