一、 我们制作一个百度首页作为练习,可直接复制该代码保存后缀名为.html来查看
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>d93_baidu_home_exercise</title>
<style>
.header{
height: 250px;
/*background-color: red;*/
}
.content{
height: 220px;
/*background-color: pink;*/
}
.footer{
height: 200px;
/*background-color:green;*/
}
div{
text-align: center;
}
.logo{
background-color:skyblue;
height: 130px;
}
input[type=text]{
width: 400px;
height:30px;
}
input[type=submit]{
width:80px;
height:30px;
}
.content_form{
height:80px;
}
body{
font-size: 1