gpt4 book ai didi

css - 如何在 ionic 4 中的 ion-menu 上应用 border-radius css 属性?

转载 作者:行者123 更新时间:2023-11-28 14:11:59 24 4
gpt4 key购买 nike

我正在创建 Ionic 4 Angular 应用程序,在应用程序中我使用 ion-menu 来显示菜单项。如何在 ion-menu 上应用 border-top-right-radius 和 border-bottom-right-radius css 属性?下图显示了我想要的。 Here is ion-menu documentation link.

ion-menu

最佳答案

你认为这实现了你想要的:

全局.scss

ion-menu{
--ion-toolbar-background: grey;
ion-list{
border: 2px solid grey !important;
padding: 10px !important;
border-top-right-radius: 25px !important;
border-bottom-right-radius: 25px !important;
background: grey !important;


}
ion-item{
--background: grey !important;
--color: #fff;
}
}

enter image description here

关于css - 如何在 ionic 4 中的 ion-menu 上应用 border-radius css 属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56381150/

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