【发布时间】:2020-08-24 16:00:44
【问题描述】:
我的 Angular 应用程序中有一个复选框。选中该值时,该框将填充 google-chrome 中的值。在 Firefox 中,它只显示在顶角,而不是填充输入字段。我该如何解决这个问题。请指导我。
HTML
<input class="customInput" id="custom" type="checkbox" formControlName="test" readonly>
css
.customInput {
width: 100%;
min-height: 70px;
border: none !important;
text-align: center;
font-size: 50px;
background: transparent;
}
// fully checked in chrome
// uncompatable firefox
【问题讨论】:
-
这能回答你的问题吗? Can I change the checkbox size using CSS?
-
我的问题是内容的大小而不是复选框的大小。