gpt4 book ai didi

ionic2 - Ionic 3 中带有标签的晶圆厂

转载 作者:行者123 更新时间:2023-12-02 23:32:00 25 4
gpt4 key购买 nike

我正在使用 Ionic 3 框架,并希望在我的 Ionic 3 应用程序中插入以下类型的 fab 菜单。

特别菜单:

enter image description here

最佳答案

在您的 SCSS 文件中:

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>

请引用此链接...

whats the correct way of inserting label in an Ionic FAB list

这个很容易实现。我已经在 Ionic 3 上测试过它并且有效

关于ionic2 - Ionic 3 中带有标签的晶圆厂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46932699/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com