javascript - Ionic 5 - 如何修改 ion-button expand="block" 宽度
问题描述
我有这条线
<ion-button expand="block" id="create" shape="round">Create Account</ion-button>
我想增加这个按钮的宽度。我找不到任何方法来增加按钮的高度和宽度。我曾尝试使用 id。那没有做任何事情。
#create {
--width: 250px;
--height: 120px;
}
解决方案
您正在使用无效的 css 属性(--width
和--heigth
)。我想你正在寻找height
and width
。
#create {
width: 250px;
height: 120px;
}
推荐阅读
- cmake - 交叉编译和链接到 sysroot 中的库 - 出了什么问题?
- ios - 如何使用 HTML 标签快速显示表格
- r - R编程中函数中的ifelse未使用参数(3)错误
- powershell - 奇怪的 CSV 输出
- python - 如何在弹性搜索查询中聚合嵌套对象的 doc_inner-hits
- sql - 多个 OR 条件在 SQL 连接查询中不起作用
- angular - !: Angular 中的(爆炸冒号)符号
- c - 如何在 C 中打印 wchar_t 变量
- node.js - 如何在 Node.js 中从 Google Cloud Functions 调用 Oracle DB
- python - 如何更改 Celery beat 服务的默认路径?