font-size
标签的input
不会增加。我知道它遵循浏览器/操作系统设置规则,但是否应该能够覆盖它?
<style>
input[type="search"]
{
font-size:50px;
}
</style>
<form class="search-box" action="https://www.google.com/search">
<input type="search" name="q" placeholder=" welcome back" value="" autocomplete="off" autofocus>
</form>
结果
答案 0 :(得分:0)
苹果做苹果的东西。 https://developer.mozilla.org/es/docs/Web/CSS/-moz-appearance
input[type=search]{
-moz-appearance: none;/* older firefox */
-webkit-appearance: none; /* safari, chrome, edge and ie mobile */
appearance: none; /* rest */
}
答案 1 :(得分:-2)
答案 2 :(得分:-2)
在输入中添加一个类,例如:
<style type="text/css">
.search{
font-size:50px;
}
<form class="search-box" action="https://www.google.com/search">
<input class="search" type="search" name="q" placeholder=" welcome back" value="" autocomplete="off" autofocus>