【发布时间】:2017-03-02 03:48:57
【问题描述】:
我无法在 IE 11 和 FireFox 中显示占位符文本。它在 chrome 中运行良好。我只包含了 2 个字段的 HTML。
HTML
<input type="email" class="form-control CustomerNumber_Box" id="inputEmail" placeholder="DOMAIN \ NETWORK ID">
<input type="password" class="form-control CustomerNumber_Box" id="inputEmail" placeholder="PASSWORD">
CSS
.CustomerNumber_Box {
border-bottom: 1px solid #97999B;
border-top: none;
border-right: none;
border-left: none;
border-radius: 0;
box-shadow: none;
padding: 27px 0;
color: #97999b;
font-size: 14px;
width: 441px;
position: relative;
left: 14px;
top: -5px;
text-transform: uppercase;
}
当我调整高度和填充时,它适用于下面的 CSS
更新的 CSS:
.CustomerNumber_Box {
border-bottom: 1px solid $tooltip_border;
border-top: none;
border-right: none;
border-left: none;
border-radius: 0;
box-shadow: none;
padding: 9px 0;
color: $black;
font-size: 14px;
width: 441px;
position: relative;
left: 14px;
top: -5px;
text-transform: uppercase;
height: 57px;
}
【问题讨论】:
标签: html css google-chrome internet-explorer firefox