将内容放在iframe上? [英] Placing content over an iframe?

查看:138
本文介绍了将内容放在iframe上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请任何人可以帮助我把东西在iframe像div或画布,我的情况是我有iframe从Photosynth.net,我需要像这个iframe像字符!

Please can anyone help me to put something over the iframe like div or canvas, my case is i have iframe from Photosynth.net, and i need to put like character over this iframe ?? and i use the z-index but still it's not working.

推荐答案

我已经创建了一个和我使用z-index但是它不工作。 http://jsfiddle.net/vkpYk/ =nofollow>简单示例,演示如何使用CSS将内容定位在iframe顶部。这只是简单的CSS分层:

I have created a simple sample showing how to use CSS to position content over top of an iframe. It's just simple CSS layering:

<iframe src="http://phrogz.net/"></iframe>
<div id="over">HI MOM</div>

然后在您的样式表中:

iframe { width:100%; height:300px; border:3px groove #f00 }
#over { font-size:5em; position:absolute; top:20px; left:20px; z-index:2 }

这篇关于将内容放在iframe上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆