首页 > 解决方案 > 增加Firefox中内容的高度

问题描述

我的角度应用程序中有一个复选框。选中该值时,该框将填充 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

标签: htmlcssfirefox

解决方案


浏览器的反应非常不同,

在 Chrome 浏览器中显示完美,

在此处输入图像描述

但在 Firefox 57 节目中,

在此处输入图像描述

更多信息:在不同的浏览器中访问样式复选框


推荐阅读