gpt4 book ai didi

css - input type=search 不接受高度

转载 作者:技术小花猫 更新时间:2023-10-29 12:01:17 27 4
gpt4 key购买 nike

我正在尝试使 input type="search" 变高,但 CSS 不会影响它。我的代码是这样的:

HTML:

<input type="search" />

CSS:

input{width:100%; height:100px;}

但它不起作用。看看 fiddle here

最佳答案

参见 http://trentwalton.com/2010/07/14/css-webkit-appearance/

Webkit 默认(劫持)使用本地搜索字段,但您可以使用以下方式覆盖它:

-webkit-appearance:none;

关于css - input type=search 不接受高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7134202/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com