[英]Ionic 5 - how to modify ion-button expand=“block” width
我有這條線
<ion-button expand="block" id="create" shape="round">Create Account</ion-button>
我想增加這個按鈕的寬度。 我找不到任何方法來增加按鈕的高度和寬度。 我曾嘗試使用 id。 那沒有做任何事情。
#create {
--width: 250px;
--height: 120px;
}
您正在使用無效的 css 屬性( --width
和--heigth
)。 我認為您正在尋找height
和width
。
#create {
width: 250px;
height: 120px;
}
我是 ionic 新手,但您應該嘗試使用<ion-content> <ion-button></ion-button> </ion-content>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.