Firefox扩展:如何在弹出窗口中删除边框? [英] Firefox extension: How do you remove the border in a popup window?

查看:102
本文介绍了Firefox扩展:如何在弹出窗口中删除边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试在Firefox扩展的工具栏上单击按钮时显示弹出窗口.

我的弹出窗口是一个内部装有iframe的面板,用于显示实际内容.无论我为面板和iframe设置了什么属性,我的内容和弹出窗口的边缘之间总是有一个难看的边界.我尝试更改iframe属性,例如:frameborder,seamless,marginheight,marginwidth等,但这些属性似乎对窗口没有影响.

I have been experimenting with displaying a popup window when a button is clicked on my Firefox extension''s toolbar.

My popup is a panel with an iframe inside it that displays the actual content. No matter what attributes I set to my panel and iframe there is always an ugly border between my content and the edge of the popup window. I have tried changing my iframe attributes like: frameborder, seamless, marginheight, marginwidth etc. but these seem to have no affect on the window.

Does anybody have any ideas on how to remove this border?

推荐答案

如果您专门针对Firefox解决此问题,可能会浪费时间:该怎么办与您的用户可能使用的所有其他Web浏览器一起使用?

考虑一个很好的选择,它们都是基于我强烈推荐的jQuery.参见:
http://jquery.com/ [ ^ ],
http://docs.jquery.com/How_jQuery_Works [ http://docs.jquery.com/Main_Page [ http://www.webappers.com/2009/10/28 /simplemodal-a-jquery-modal-dialog-framework/ [ http://www.queness.com/resources/html/modal/jquery-modal- window.html [^ ],
http://dinbror.dk/bpopup/ [ ^ ],
http://bit.ly/xWY2tf [ ^ ].

如果 dialog ,则另外一个: http://jqueryui.com/demos/dialog/ [ ^ ].

另请参阅使用这两个概念的解决方案集: http://choosedaily.com/1178 /15-jquery-popup-modal-dialog-plugins-tutorials/ [ ^ ].

—SA
If you fight this problem for Firefox, specifically, it can be a waste of time: what to do with all other Web browsers your users may use?

Consider one the the good alternatives, both based on jQuery which I highly recommend. See:
http://jquery.com/[^],
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Main_Page[^].
http://www.webappers.com/2009/10/28/simplemodal-a-jquery-modal-dialog-framework/[^],

First concept is the modal popup. Please see:
http://www.queness.com/resources/html/modal/jquery-modal-window.html[^],
http://dinbror.dk/bpopup/[^],
http://bit.ly/xWY2tf[^].

Another one if the dialog: http://jqueryui.com/demos/dialog/[^].

See also a set of solutions using both concepts: http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/[^].

—SA


感谢您的链接.我将仔细检查这些内容,看看它们是否可以帮助我.

要回答您的问题,弹出窗口来自Firefox扩展工具栏,而不是网页,因此在这种情况下,我不必担心其他网络浏览器.
Thanks for the links. I''ll have a look through those and see if they can help me.

To answer your question, the pop up is from a Firefox extension toolbar, and not a web page, so I am not worried about other web browsers in this case.


这篇关于Firefox扩展:如何在弹出窗口中删除边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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