如何删除的背景
我有一个
。在里面,我有一个
I am having a <tooltip>
. Inside that, I am having a <button>
. But this shows a background around button. How to remove it? I want just the button to appear as if it is just a standalone button floating.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
元素没有预定义背景,至少在默认 Windows 主题中没有。相反,它似乎使用操作系统定义的默认背景。您可以通过更改-moz-appearance
CSS 属性来禁用此行为。设置背景也不会造成损害,其他主题可能会定义它:The
<tooltip>
element doesn't have a predefined background, at least not in the default Windows theme. Instead it seems to use the default background defined by the operating system. You can disable this behavior by changing-moz-appearance
CSS property. Setting background as well won't harm, other themes might defined it:使用 CSS 使工具提示的背景透明。
Use CSS to make tooltip's background transparent.