firefox - Firefox扩展中的位置框

标签 firefox firefox-addon xul

尝试一些简单的Firefox扩展...

我正在尝试在浏览器底部默认状态栏正上方的浏览器窗口宽度上创建第二个“栏”。

在我的叠加层中放置一个简单的hbox元素会在默认状态栏的下方放置第二个“栏”,但是我似乎找不到移动它的方法。我已经尝试过“insertbefore ='status-bar'”之类的。

我已经搜寻了一段时间,但似乎无法找到这个看似简单的问题的答案...

更新...这是我在psuedocode中的叠加层(我现在不在我的机器上)...

<overlay>

  //this is where i want to do a second "bar" above the status bar
  <hbox>
    //random text in here is displayed in bar properly but its below the default bar
    // tried "insertbefore='status-bar'" in the hbox tag...but this had no effect..
  </hbox> 

  //default status bar...i placed a button here...
  <statusbar id="status-bar">
    //button element goes here and is placed on right side of default status bar
    // this works as expected
  </statusbar>

</overlay>

最佳答案

就像我说的那样,您需要使用DOM Inspector(我认为这是“底部框”)找到状态栏的父级,然后将框作为该元素的子级。

关于firefox - Firefox扩展中的位置框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4320365/

相关文章:

firefox - 永久安装个人 Firefox 网络扩展

debugging - cfx运行后如何调试firefox扩展?

firefox-addon - 创建一个类似于 Firebug 的菜单

firefox - 在 XUL 扩展中重用内置的 Firefox 图标?

javascript - typeof document ['domConfig'] 在 Firefox 中出现错误

asp.net-mvc - ActionLinks 在 FireFox 和 Safari 中并不总是有效

javascript - 如何在 Firefox 扩展中替换多个单词

firefox - 从 Firefox 扩展拦截鼠标悬停在 href 上

javascript - HTML:通过单击单元格来选择单选按钮 - 代码在 Chrome 中运行,而不是在 Firefox 中运行

c# - 如何在 FireFox 运行时访问 FireFox 3 书签?