Javascript 离子5-如何修改离子按钮展开=";块;宽度

Javascript 离子5-如何修改离子按钮展开=";块;宽度,javascript,angular,ionic-framework,Javascript,Angular,Ionic Framework,我有这条线 <ion-button expand="block" id="create" shape="round">Create Account</ion-button> 您使用的css属性无效(--width和--heigth)。我想你要找的是高度和宽度 #create { width: 250px; height: 120px; } 您使用的css属性无效(--width和--heigth)。我想你要找的是高度和宽度 #create {

我有这条线

<ion-button expand="block" id="create" shape="round">Create Account</ion-button>

您使用的css属性无效(
--width
--heigth
)。我想你要找的是
高度
宽度

#create {
    width: 250px;
    height: 120px;
}

您使用的css属性无效(
--width
--heigth
)。我想你要找的是
高度
宽度

#create {
    width: 250px;
    height: 120px;
}

我是爱奥尼亚的新手,但你应该尝试使用

我是爱奥尼亚的新手,但你应该尝试使用

我不确定
--width
--heigth
是否是有效的css属性,你能尝试使用
width
height
而不使用
--
我想我会发疯的。但是是的,这很有效!!把这个作为答案贴出来,我会批准的!!我很高兴能帮上忙!要定义背景,请使用--background!!但是你可以用普通的css来修改其他东西。我花了好几个小时试图弄明白这个lol。我不确定
--width
--heighth
是否是有效的css属性,你能尝试使用
width
height
而不使用
--
吗?我想我会发疯的。但是是的,这很有效!!把这个作为答案贴出来,我会批准的!!我很高兴能帮上忙!要定义背景,请使用--background!!但是你可以用普通的css来修改其他东西。我花了好几个小时想弄明白,哈哈。