开发者

How to remove background of <tooltip>

I am having a <tooltip>. Inside that, I am having a <button>. But this shows a backgroun开发者_StackOverflowd around button. How to remove it? I want just the button to appear as if it is just a standalone button floating.


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:

-moz-appearance: none;
background: transparent;


Use CSS to make tooltip's background transparent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜