当前位置:网站首页>[web daily practice] eight color puzzle (float)
[web daily practice] eight color puzzle (float)
2022-04-23 11:28:00 【Nick_ Bears】

The goal is : be familiar with float Layout
requirement : use float Layout Complete the eight color puzzle
legend :

Ideas : Cut the whole into small pieces to deal with ,float Related parameters
Realization :
<!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;
}
div{
font-size: 30px;
text-align: center;
}
.head{
width: 500px;
height: 100px;
line-height: 100px;
background-color: green;
}
.head div{
width: 100px;
height: 100px;
float: left;
}
.mid{
width: 500px;
height: 350px;
background-color: pink;
}
.mid .left{
width: 300px;
height: 350px;
float: left;
}
.mid .right{
width: 200px;
height: 350px;
float: left;
}
.mid .left .six{
width: 300px;
height: 100px;
line-height: 100px;
background-color: yellow;
}
.mid .left .eight,.mid .left .nine{
width: 150px;
height: 150px;
line-height: 150px;
background-color: silver;
float: left;
}
.mid .left .nine{
color: white;
background-color: black;
}
.mid .left .eleven{
width: 300px;
height: 100px;
line-height: 100px;
background-color: red;
float: left;
}
.mid .right .seven{
width: 200px;
height: 220px;
line-height: 190px;
}
.mid .right .ten{
width: 200px;
height: 130px;
line-height: 130px;
background-color: aqua;
}
.tail{
width: 500px;
height: 100px;
line-height: 100px;
background-color: blue;
}
</style>
</head>
<body>
<div class="head">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
<div class="mid">
<div class="left">
<div class="six">6</div>
<div class="eight">8</div>
<div class="nine">9</div>
<div class="eleven">11</div>
</div>
<div class="right">
<div class="seven">7</div>
<div class="ten">10</div>
</div>
</div>
<div class="tail">12</div>
</body>
</html>
版权声明
本文为[Nick_ Bears]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231123343797.html
边栏推荐
猜你喜欢

Structure of C language (Advanced)

分享两个实用的shell脚本
![[Web 每日一练] 八色拼图(float)](/img/59/474080f6377b3684aa4fb2a39e1d81.png)
[Web 每日一练] 八色拼图(float)

Analyze the rules for the use of robots with good performance

进程间通信 -- 消息队列

赛微微电科创板上市破发:跌幅达26% 公司市值44亿

rebbitMQ的简单搭建

After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before

qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法

微型机器人的认知和研发技术
随机推荐
golang之笔试题&面试题01
Structure of C language (Advanced)
Detailed explanation of integer data type tinyint in MySQL
Learn go language 0x03: understand the dependency between variables and initialization order
Résumé de la relation entre GPU, cuda et cudnn
解读2022机器人教育产业分析报告
Learn go language 0x04: Code of exercises sliced in go language journey
Understanding of fileprovider path configuration strategy
Laravel admin time range selector daterange default value problem
VM set up static virtual machine
Implementation of partition table of existing data table by MySQL
Canvas详解
qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
Exploring the equipment and teaching of robot education
Learning go language 0x01: start from the official website
升级cpolar内网穿透能获得的功能
卷积层和池化层总结
MySQL sorting feature details
Pytorch neural network trainer
初探 Lambda Powertools TypeScript