【发布时间】:2017-01-14 15:10:09
【问题描述】:
我的 jsfiddle here 有引导和引导材料设计的链接。我想让输入占位符的字体更小,但它只是不预算,即使是 moz 或 webkit 的输入占位符。任何建议将不胜感激。
html
<form class="form form-group has-info col-md-4">
<input class="search-input form-control" placeholder=" . . . enter pokemon name" type="text">
<button type="submit" class="btn btn-info btn-raised " name="button">Search!</button>
</form>
css
::-webkit-input-placeholder {
font-size: 25px;
}
:-moz-placeholder { /* Firefox 18- */
font-size: 25px;
}
::-moz-placeholder { /* Firefox 19+ */
font-size: 25px;
}
:-ms-input-placeholder {
font-size: 25px;
}
【问题讨论】:
-
使用 !important。 (例如 font-size: 200px !important)
-
!important对我不起作用
标签: css twitter-bootstrap twitter-bootstrap-3