工具提示不起作用

发布于 2024-11-15 07:23:06 字数 330 浏览 6 评论 0原文

我在 *.xul 中使用这段代码,

<tooltip id="tt">
  <label value="additional information"/>
</tooltip>

<statusbar id="status-bar">
<statusbarpanel id="mypanel" tooltip="tt"
    label="my panel"
  />
</statusbar>

我不知道为什么,但是当我用鼠标在我的面板上时。没有带有“附加信息”的弹出窗口,

谢谢您的帮助

I'm using this code in *.xul

<tooltip id="tt">
  <label value="additional information"/>
</tooltip>

<statusbar id="status-bar">
<statusbarpanel id="mypanel" tooltip="tt"
    label="my panel"
  />
</statusbar>

I don't know why but when I'm over mypanel with mouse. There is no popup window with "additional information"

thank you for help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浴红衣 2024-11-22 07:23:06

我不确定,但这可能是因为 元素需要位于 元素内部。顺便说一下,你不应该再使用状态栏了;使用附加栏: https://developer.mozilla.org/en/The_add-on_bar

I'm not sure, but this might be because the <tooltip> element needs to be inside of a <popupset> element. By the way, you shouldn't use the statusbar anymore; use the add-on bar instead: https://developer.mozilla.org/en/The_add-on_bar

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文