gpt4 book ai didi

html - 输入类型搜索 - 如何获得白色的占位符和清除按钮?

转载 作者:行者123 更新时间:2023-11-28 16:55:56 25 4
gpt4 key购买 nike

在下面的示例中,如何获得白色的 placeholderclear button

谢谢。

.searcha{
display:block;
width:100%;
padding:3px 9px;
text-transform:uppercase;
font-size:1rem;
letter-spacing:0.5px;
background:#006790;
border:none;
outline:none;
color:white;
}
<input type='search' class='searcha' placeholder='&#x1F50D;'>

最佳答案

试试这个

.searcha {
display: block;
width: 100%;
padding: 3px 9px;
text-transform: uppercase;
font-size: 1rem;
letter-spacing: 0.5px;
background: #006790;
border: none;
outline: none;
color: white;
}

::-webkit-input-placeholder {
color: white;
}
<input type='search' class='searcha' placeholder='&#x1F50D; Placeholder'>

关于html - 输入类型搜索 - 如何获得白色的占位符和清除按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56783519/

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