template string
<div class="tooltip" role="tooltip">
<div class="tooltip-arrow"></div>
<div class="tooltip-inner"></div>
</div>
Base HTML to use when creating the tooltip.
The tooltip's title will be injected into the .tooltip-inner
.
.tooltip-arrow
will become the tooltip's arrow.
The outermost wrapper element should have the .tooltip
class.
http://getbootstrap.com/javascript/#tooltips
To answer your question
How can I change background color to blue when the user hovers over the tooltip?
Style the tooltip using the .tooltip-inner
and tooltop-arrow
selectors. The .tooltip
selector should be left alone.
For example
(Demo)
.tooltip-inner {
background: #66CCFF;
}
.tooltip.top .tooltip-arrow {
border-top-color: #66CCFF;
}
.tooltip.left .tooltip-arrow {
border-left-color: #66CCFF;
}
.tooltip.right .tooltip-arrow {
border-right-color: #66CCFF;
}
.tooltip.bottom .tooltip-arrow {
border-bottom-color: #66CCFF;
}