<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>input添加小图标</title>
<style>
.phone-input {
padding-right: 20px;
background: url("images/user.png") no-repeat scroll right center transparent;
height: 30px;
}
</style>
</head>
<body>
<div><input class='phone-input' type="text" id="phone" placeholder="用户名"/>
</div>
</body>
</html>
在文本框“用户名”前面添加小图标
最新推荐文章于 2022-12-29 20:00:24 发布