<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="wrap">
<img src="../images/1.jpg" alt="" srcset="">
<input type="text" placeholder="及踩踩">
</div>
</body>
<style>
.wrap{
height: 70px;
line-height: 70px;
width: 100%;
background-color: aqua;
display: flex;
flex-direction: row;
border: 1px solid #dddddd;
border-radius: 50px;
}
.wrap img
{
margin: auto 0 auto 20px;
width: 40px;
height: 40px;
}
.wrap input
{
height: 68px;
width: 70%;
line-height: 69px;
font-size: 30px;
color: #666666;
border: none;
outline: none;
}
</style>
</html>
让输入框左边有图片
最新推荐文章于 2023-03-29 11:57:30 发布