从iframe中删除click-option

时间:2015-02-12 14:27:18

标签: iframe instagram

如果有人可以帮我删除此iframe中的点击(链接)选项,我会非常非常高兴。我只是希望图像不可点击。

<iframe src="http://snapwidget.com/in/?u=bW9sbGVrcnVrbWFrZXJpfGlufDI1MHwxfDF8fG5vfDB8bm9uZXxvblN0YXJ0fG5vfG5v&ve=120215" title="Instagram Widget" class="snapwidget-widget" allowTransparency="true" frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:200px; height:200px"></iframe>

1 个答案:

答案 0 :(得分:2)

您可以在iframe前放置透明div。

&#13;
&#13;
.iframeContainer{
position:relative;
border:1px solid;
width:200px;
height:200px;
}

.iframeBlocker{
position:absolute;
width:100%;
height:100%;
background:#000;
opacity:0.5;
}
&#13;
    <div class="iframeContainer">
    	<div class="iframeBlocker"></div>
    	<iframe src="http://snapwidget.com/in/?u=bW9sbGVrcnVrbWFrZXJpfGlufDI1MHwxfDF8fG5vfDB8bm9uZXxvblN0YXJ0fG5vfG5v&ve=120215" title="Instagram Widget" class="snapwidget-widget" allowTransparency="true" frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:200px; height:200px"></iframe>
    </div>
&#13;
&#13;
&#13;