Files
ClassContent/历届学生/fontendsix/项目练习/上课项目/简书搜索条/index.html
2024-09-27 02:06:13 +08:00

56 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>简书搜索条</title>
<style>
li {
list-style: none;
/* 清除li标签的小圆点 */
}
a {
text-decoration: none;
/* 清除a标签的下划线 */
}
body,
ul {
margin: 0;
padding: 0;
}
input {
border: none;
outline: none;
padding: 0;
}
.search {
width: 240px;
height: 38px;
padding-left: 20px;
padding-right: 40px;
box-sizing: border-box;
border-radius: 20px;
font-size: 14px;
border: 1px solid #eee;
background: #eee url("./search.png") no-repeat 210px center;
background-size: 20px;
}
</style>
</head>
<body>
<input class="search" type="text" placeholder="搜索">
</body>
</html>