angularjs - md-tooltip 不适用于选取框
问题描述
我在 md-button 中使用 md-tooltip 并使用 marquee 显示按钮的滚动标签。但是 md-tooltip 只显示一秒钟,然后当我将鼠标移到 md 按钮上时消失。我注意到,当我删除选取框代码时,md-tooltip 会正确显示。也尝试使用 md-z-index、md-visible 但没有帮助。所有控件都添加到部分中。
<section layout="row" layout-sm="column" layout-align="center center" layout-wrap>
<div ng-repeat="mybutton in allbuttons">
<md-button class="md-fab">
<div >
<md-tooltip md-direction="top" md-visible="true">{{mybutton.buttontooltip}}</md-tooltip>
<img ng-src={{mybutton.imagesource}} style="width:50px" />
</div>
</md-button>
<div class="buttonLabel">
<marquee scrollamount="1" style="float:left; font-size: 12px; width:70px; color: white; padding-right: 5em">
<div>
{{buttonlabel}}
</div>
</marquee>
</div>
</div>
</section>
我的类 buttonLabel 的 CSS 如下。
.buttonLabel {
background-color: #080808;
color:#EEE5E5;
bottom: 2px;
left: 520px;
margin: 10px;
}
采摘器链接如下。如果您删除选取框,它将正常工作。
https://codepen.io/naddy1/pen/eKbGVN
请让我知道我是否以正确的方式进行操作?
解决方案
推荐阅读
- javascript - 范围滑块输出到文本输入字段
- python - 在 K-means 聚类中组织聚类
- excel - 运行时错误“1004”宏停止运行,如果带有宏的工作簿不是活动的
- c# - 如何记录/审核插入/添加 C# EF4 的更改
- android - RecylerView Add On Scroll 未在 Swipe 内调用以刷新布局
- powerbi - 如何在 DAX 中计算平均值
- python - 根据文件名将图像数据集从单个文件夹复制并粘贴到子文件夹
- c# - EF 2.1 错误地翻译 Group By Query
- ruby-on-rails - Rails、多态关联和表单助手
- docker - 将不可信的图像导入docker?