随笔记录方便自己和同路人查阅,学习CSS时最好先学会HTML。
#------------------------------------------------我是可耻的分割线-------------------------------------------
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div style="height:35px;width:400px;position:relative;">
<input type="text" style="height:35px;width:370px;padding-right:30px;"/>
<span style="position:absolute;right:6px;top:10px;background-image:url(4.png);height:16px;width:16px;
display:inline-block;"></span>
</div>
</body>
</html>
效果: