Tooltips 工具提示
优质
小牛编辑
132浏览
2023-12-01
Documentation and examples for adding custom tooltips with CSS and C using data-attributes for local title storage.
Examples
Hover over the buttons below to see the four tooltips directions: top, right, bottom, and left.
<button class="btn btn-secondary mr-2" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
Tooltip on top
</button>
<button class="btn btn-secondary mr-2" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
Tooltip on right
</button>
<button class="btn btn-secondary mr-2" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
Tooltip on bottom
</button>
<button class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
Tooltip on left
</button>