我有一个带有工具栏按钮的 Firefox 扩展,单击该按钮会显示一个面板,我通过将其类型设置为“菜单”或“面板”来实现此目的。我的问题是这种类型的按钮的样式与标准按钮不同(显示向下箭头以指示它可以展开)。设置 class="toolbarbutton-1" 会使按钮在 Windows 上几乎正确显示,但在 Linux 上图标太高。我的扩展程序可用,包括来源 https://addons.mozilla.org/ en-us/firefox/addon/tabcloud/ 如果有用的话。
我的问题是我应该如何设计工具栏按钮的样式,以便它在所有操作系统上显示相同且高度正确。
I have a Firefox extension with a toolbarbutton which when clicked displays a panel, I achieve this by setting its type to either "menu" or "panel". My problem is this type of button does not style in the same way as a standard button (a downwards arrow is displayed to indicate it can be expanded). Setting class="toolbarbutton-1" causes the button to appear almost correctly on Windows, but on Linux the icon is far too tall. My extension is available including the source at https://addons.mozilla.org/en-us/firefox/addon/tabcloud/ if that is useful.
My question is how should I style the toolbarbutton so it displays identically and with the correct height on all operating systems.
发布评论
评论(1)
那么您希望您的按钮看起来像标准 Firefox 按钮之一吗?遗憾的是,只有一个标准 Firefox 按钮使用 type="menu",并且出于某种只有他们自己知道的原因,他们解决了自己的错误 此处,此处 再次此处...我建议您在自己的 CSS 中执行相同的操作。
So you want your button to look like one of the standard Firefox buttons? Sadly only one of the standard Firefox buttons use type="menu", and for some reason known only to themselves they worked around their own bug here, here and again here... I suggest you do the same in your own CSS.