1 <!-- 背景案例 --> 2 <!DOCTYPE html> 3 <html lang="en"> 4 <head> 5 <meta charset="UTF-8"> 6 <title>Document</title> 7 <style type="text/css"> 8 input{ 9 width:280px; 10 height:30px; 11 background:url("1.jpg") no-repeat right; 12 } 13 </style> 14 </head> 15 <body> 16 <input type="text" value="请输入关键字"> 17 </body> 18 </html>