day15 带图标的输入框

阅读 81

2022-08-01

<!DOCTYPE html>

<html>

<head lang="en">

<meta charset="UTF-8">

<title></title>

<style>

.good{

background-image: url("i_username.png");

display: inline-block;

width: 42px;

height: 42px;



}





</style>

</head>

<body>

<div style="width:200px;position: relative">

<input style="width:180px;height: 42px;padding-right: 20px"/>

<span class="good" style="position: absolute;top:2px;right:0;"></span>

</div>

</body>

</html>

精彩评论(0)

0 0 举报