一、代码:
<!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>
</head><!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>
</head>
<style>
* {
margin: 0;
padding: 0px;
}
nav {
height: 68px;
background-color: #fff;
position: sticky;
top: 0px;
padding-top: 10px;
box-sizing: border-box;
}
ul {
list-style: none;
overflow: hidden;
padding-left: 60px;
}
ul li {
float: left;
margin-left: 30px;
}
a {
text-decoration: none;
color: initial;
height: 46px;
display: inline-block;
line-height: 46px;
}
.input-li {
margin-left: 2px;
width: 639px;
height: 40px;
border: 2px solid #ffcc32;
}
.input-li input {
outline: none;
width:88%;
height: 40px;
border: none;
}
.button {
width: 12%;
height: 40px;
background-color: #ffcc32;
border:none;
background-image: none;
}
a:hover {
color: red;
}
li img:hover {
cursor: pointer
}
::placeholder{
color: rgba(202, 200, 200, 6);
}
body {
background-color: #f7f8fc;
font-size: 14px;
letter-spacing: 3px;
word-spacing: 20px;
}
main {
width: 90%;
height:704px;
margin: auto;
padding-top: 30px;
}
.video-container {
width: 100%