2014-02-26 48 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>