题目一
通过浮动布局实现以下图片
题目二
通过浮动布局实现以下图案
题目一代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>浮动作业</title>
<style type="text/css">
.box{
width: 1000px;
margin: 0 auto;
}
div div{
font: 900 30px/100px 'STSong';
color: #fff;
text-align: center;
width: 200px;
height: 100px;
background-color: green;
float: left;
}
.b6 {
width: 600px;
background-color: yellow;
}
.b7{
width: 400px;
height: 200px;
line-height: 200px;
background-color: yellowgreen;
float: right;
}
.b8{
width: 300px;
height: 150px;
line-height: 150px;
background-c