在Firefox扩展名中的位置框

时间:2010-12-01 01:10:01

标签: firefox firefox-addon xul

尝试一些简单的firefox扩展程序......

我正在尝试创建第二个" bar"浏览器窗口的宽度直接位于浏览器底部的默认状态栏上方。

在我的叠加层中放置一个简单的hbox元素会放置第二个" bar"在默认状态栏下面,但我似乎无法找到一种方法来移动它。我试过" insertbefore =' status-bar'"等等。

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

UPDATE ...继承我在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>

1 个答案:

答案 0 :(得分:1)

正如我所说,你需要找到状态栏的父级,使用DOM Inspector(我认为它是“底盒”),然后将你的盒子作为该元素的子元素。