答案 0 :(得分:1)
您可以将background-size
设置为100% 100%
,将background-position
设置为50%
,将background-repeat
设置为no-repeat
.background {
background-image: url("http://icons.iconarchive.com/icons/paomedia/small-n-flat/1024/sign-check-icon.png");
background-size: 100% 100%;
background-position: 50%;
background-repeat: no-repeat;
}

<input type="text" class="background" />
&#13;