将图像放在输入框中 [英] Putting a image inside a input box
本文介绍了将图像放在输入框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
但是如何获取里面的图标和右侧的右侧?
But how to I get the icon inside and on the right side of the box?
推荐答案
试试这个:
background: url(images/icon.png) no-repeat right center;
此CSS的说明如下:
背景:[url to image] [不重复] [水平位置] [垂直位置]
background: [url to image] [don't repeat] [horizontal position] [vertical position]
这篇关于将图像放在输入框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文