<!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>Document</title>
<style>
*{
margin: 0;
padding: 0;
}
.search{
width: 932px;
height: 120px;
border: 1px solid #dedede;
background-color: #f5f5f5;
position: absolute;
top: 50%;
left: 50%;
margin-left: -467px;
margin-top: -60px;
border-radius: 17px;
/* 左下角阴影,右下角阴影 */
box-shadow: -3px 12px 3px #bfbfbf,3px 12px 3px #bfbfbf;
}
input{
outline: none;
width: 680px;
height: 82px;
border: 2px solid #cccccc;
border-radius: 5px;
margin-top: 18px;
margin-left: 18px;
font-size: 25px;
color: #a9a9a7;
text-indent: 12px;
font-weight: bold;
}
button{
width: 198px;
border: 2px solid #0f8faa;
background-image: url(img/1.png);
border-radius: 5px;
margin-left: 15px;
height: 82px;
font-size: 22px;
color: white;
text-shadow: 0 2px 2px #0f6b7c;
}
</style>
</head>
<body>
<div class="search">
<input type="text" value="Search for CSS3, HTML5,jQuery ...">
<button>GO</button>
</div>
Search for CSS3, HTML5,jQuery ...
</body>
</html>
box-shadow: -3px 12px 3px #bfbfbf
box-shadow: 3px 12px 3px #bfbfbf
box-shadow: 0 0 3px #bfbfbf
没有阴影