gpt4 book ai didi

firefox - Firefox扩展中的位置框

转载 作者:行者123 更新时间:2023-12-02 04:12:34 24 4
gpt4 key购买 nike

尝试一些简单的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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com