用HTML5做一个搜索框
时间: 2024-03-11 15:28:04 浏览: 53
<!DOCTYPE html>
<html>
<head>
<title>搜索框</title>
<meta charset="UTF-8">
<style type="text/css">
#search {
padding: 10px;
border: none;
border-radius: 5px;
width: 300px;
font-size: 16px;
}
#submit {
padding: 10px;
border: none;
border-radius: 5px;
background-color: #4CAF50;
color: white;
font-size: 16px;
cursor: pointer;
}
</style>
</head>
<body>
<form>
<input type="text" id="search" placeholder="请输入搜索内容">
<input type="submit" id="submit" value="搜索">
</form>
</body>
</html>
阅读全文