我想自动定位我的工具提示,就像我在浏览器滚动条的顶部一样,并且第一行有一个带有工具提示的链接,那么工具提示必须显示在底部中间。
有没有办法只使用angularjs?
我正在使用 angular-ui-bootstrap
<a href="#" tooltip-template="'tool.html'" tooltip-class="customclass">My template</a>
<style>
.tooltip.customclass .tooltip-inner {
color: #414141;
background-color: #f1f1f1;
box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
.tooltip.customclass .tooltip-arrow {
display: none;}
</style>
<script type="text/ng-template" id="tool.html">
<span>Special Tooltip with <strong>markup</strong></span>
</script>`