带有Ionic 3标签的Fab [英] Fabs With Labels In Ionic 3
本文介绍了带有Ionic 3标签的Fab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Ionic 3 Framework,并想在我的Ionic 3 App中插入以下类型的fab菜单.
I am using the Ionic 3 Framework and want to insert the following type of fab menu in my Ionic 3 App.
特殊Fab菜单:
推荐答案
在您的SCSS文件中:
In your SCSS file:
button[ion-fab] {
overflow: visible;
position: relative;
ion-label {
position: absolute;
top: -8px;
right: 40px;
color: white;
background-color: rgba(0,0,0,0.7);
line-height: 24px;
padding: 4px 8px;
border-radius: 4px;
}
}
.fab{
contain: layout;
}
您的HTML文件:
<ion-fab bottom right >
<button ion-fab>Share</button>
<ion-fab-list side="top">
<button ion-fab>
<ion-icon name="logo-facebook"></ion-icon>
<ion-label>Facebook</ion-label>
</button>
</ion-fab-list>
</ion-fab>
请参考此链接...
这个很容易实现.我已经在Ionic 3上进行了测试,并且可以正常工作
This one is fairly easy to impelement. I've tested this on Ionic 3 and it works
这篇关于带有Ionic 3标签的Fab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文