pink老师课程案例
这里主要是练习浮动布局
效果如下
<!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;
}
body {
background-color: rgb(235, 235, 235);
}
li {
list-style: none;
/*去掉li的点*/
}
.box {
margin: 60px auto;
/*水平居中*/
width: 1226px;
height: 285px;
}
.box a {
text-decoration: none