当前位置:网站首页>[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
边栏推荐
- Advanced file IO of system programming (13) -- IO multiplexing - Select
- PCB的注意事项
- QT 怎么把QWigdet变成QDialog
- Three web components (servlet, filter, listener)
- Interpretation of biological recognition in robot programming course
- nacos基础(5):nacos配置入门
- 云呐|固定资产盘点中,支持多种盘点方式(资产清查盘点)
- Mysql database transaction example tutorial
- The way to change children's programming structure
- docker MySQL主从备份
猜你喜欢
积极参与中学机器人竞赛的意义
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
得物技术网络优化-CDN资源请求优化实践
PDMS软光刻加工过程
26. Delete duplicates in ordered array
On lambda powertools typescript
解析性能良好的机器人使用守则
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Interpretation of 2022 robot education industry analysis report
nacos基础(8):登录管理
随机推荐
Upgrade the functions available for cpolar intranet penetration
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
Get things technology network optimization - CDN resource request Optimization Practice
GPU, CUDA,cuDNN三者的關系總結
SOFA Weekly | 年度优秀 Committer 、本周 Contributor、本周 QA
Laravel绑定钉钉群警报(php)
探究机器人教育的器材与教学
rebbitMQ的简单搭建
PDMS软光刻加工过程
MySQL8. 0 upgraded stepping on the pit Adventure
Résumé de la relation entre GPU, cuda et cudnn
怎么进行固定资产盘点,资产盘点报告如何一键生成
解读2022机器人教育产业分析报告
MQ的了解
Understanding of fileprovider path configuration strategy
进程间通信 -- 消息队列
Learn go language 0x06: Fibonacci closure exercise code in go language journey
nacos基础(7):配置管理
My creation anniversary
Write console script by laravel