制作iframe可点击链接

时间:2014-11-24 18:29:41

标签: html css iframe clickable

我想做的是让iframe可点击 我发现这个代码可以使这个工作:

div.iframe-link {
  position: relative;
  float: left;
  width: 115%;
  height: 516px;
  margin: 0 1em 1em 0;
}
a.iframe-link {
  text-decoration:none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width:105%;
  height:516px;
}

这是iframe:

<div class="iframe-link">
<iframe src="http://bidra.no/integrer/7182e5a4-612a-49fc-aecb-e7934706a777" width="105%" height="516" frameborder="0" scrolling="no" seamless="seamless">
</iframe> 
<a class="iframe-link" href="http://bidra.no/kampanje/st%C3%B8tt-siops-info-og-ressurssenter-for-veteraner/7182e5a4-612a-49fc-aecb-e7934706a777" target="_blank"> &nbsp;</a>
</div>

我的朋友无法在Firefox中使用它

它在firefox,chrome和safari上为我工作。

0 个答案:

没有答案
相关问题