在iframe之外显示元素 [英] Display element outside of iframe

查看:160
本文介绍了在iframe之外显示元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从iframe中显示poshytip,因此它也显示在iframe之外?
例如。像溢出:可见。



如果不是,那么显示父文档的poshytip和相对于我的内容的位置会有多困难?什么是浏览器安全措施?



注意!!Iframe的固定高度!

像这样:

  + -------------- -------------- + 
| POSHYTIP |
| |
| |
| |
+ - \ / ---------------------- +
+ ------- \ / - -------------------------------------------------- ----- +
| IFRAME BANNER |
| |
| |
+ --------------------------------------------- --------------------- +

干杯!

解决方案

这是不可能的。 iFrame本质上是一个单独的浏览器窗口,它引用其他页面。 (正如你所说,这是一个广告横幅模块。)



如果您需要工具提示,您必须放置工具提示以引用iframe本身。

Is it possible to show poshytip from iframe so it is also displaying outside of iframe? Eg. like overflow: visible..

And if not, then how hard would be to display poshytip for parent document and position it relative to my content? What are browser security measures?

NB! Iframe has a fixed height!

Like so:

    +----------------------------+
    |         POSHYTIP           |
    |                            |
    |                            |
    |                            |
    +--\  /----------------------+
+-------\/---------------------------------------------------------+
|             IFRAME BANNER                                        |
|                                                                  |
|                                                                  |
+------------------------------------------------------------------+

Cheers!

解决方案

This is not possible. An iFrame is in essence a separate browser window inside document that references other pages. (As you said, it's an advertisement banner module.)

You'll have to place the tooltip to reference the iframe itself if you want a tooltip.

这篇关于在iframe之外显示元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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