以下是我的代码:
input{
background: url("https://istack.dev59.com/dXML2.webp") no-repeat -30px -20px;
height: 30px;
width: 100%;
}
<input type="text" />
我希望将放大镜下移一点,也就是垂直居中在输入框中间。
我可以像这样实现:
input{
background: url("https://istack.dev59.com/dXML2.webp") no-repeat -30px -15px;
height: 30px;
width: 100%;
}
<input type = "text" />