css - xul 菜单按钮上的鼠标悬停事件

标签 css firefox-addon xul onmouseover

我想在菜单按钮的鼠标悬停事件上更改按钮的显示。 它显示了鼠标悬停在菜单按钮事件上的按钮边框,以及按钮和下拉菜单的分离。

<toolbarbutton id="search" type="menu-button" label="SEARCH" width="83" height="25" oncommand="webSearch();event.stopPropagation();" onmouseover="">
   <menupopup>
      <menuitem label="Web" value="webs" oncommand="webSearch();event.stopPropagation();"/>
      <menuitem label="Images" value="images" oncommand="imageSearch();event.stopPropagation();"/>
   </menupopup>
</toolbarbutton>

最佳答案

你想要它做什么?您可以添加一些 CSS 以在将鼠标悬停在其上时更改其样式吗?

#search:hover {
   /* your styles here */
}

关于css - xul 菜单按钮上的鼠标悬停事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7315057/

相关文章:

javascript - 查找触发 http-on-examine-response 事件的选项卡

html - 修复了移动浏览器上的 header 问题

python - Selenium Firefox Webdriver 驱动程序 : extension (IETab v2) configurations - Python

javascript - 从 Firefox 浏览器扩展触发事件?

javascript - ff 扩展名。如何将参数传递给菜单中oncommand属性中的函数

java - XUL 和 Java 之间的通信

html - 如何使一行图像居中?

html - 在 html 页面中渲染 SVG 文件

javascript - 将选择元素放入具有 z-index 位置的 div 到 Highcharts 容器

Firefox - 如何使 HTML(带有 Javascript)文件能够在本地保存自身?