当前位置:网站首页>[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
边栏推荐
- Detailed explanation of how to smoothly go online after MySQL table splitting
- Understanding of MQ
- Nacos Foundation (7): Configuration Management
- Solve the problem of "suncertpathbuilderexception: unable to find valid certification path to requested target"
- Share two practical shell scripts
- mysql分表之后如何平滑上线详解
- AcWing 1874. 哞加密(枚举,哈希)
- Compress the curl library into a sending string of utf8 and send it with curl library
- 项目实训-火爆辣椒
- ES6 learning notes II
猜你喜欢
论坛系统数据库设计
解决由于找不到amd_ags_x64.dll,无法继续执行代码。重新安装程序可能会解决此问题,地平线(Forza Horizon 5)
PDMS soft lithography process
升级cpolar内网穿透能获得的功能
Interpretation of 2022 robot education industry analysis report
Summary of the relationship among GPU, CUDA and cudnn
积极参与中学机器人竞赛的意义
Significance of actively participating in middle school robot competition
进程间通信 -- 消息队列
微型机器人的认知和研发技术
随机推荐
laravel编写Console脚本
Interpreting the art created by robots
解读机器人编程课程的生物认知度
Detailed explanation of how to smoothly go online after MySQL table splitting
Understanding of fileprovider path configuration strategy
Laravel admin time range selector daterange default value problem
rebbitMQ的简单搭建
MQ的了解
redis优化系列(二)Redis主从原理、主从常用配置
Laravel绑定钉钉群警报(php)
C#的学习笔记【八】SQL【一】
Get things technology network optimization - CDN resource request Optimization Practice
采用百度飞桨EasyDL完成指定目标识别
解析幼儿教育中steam教育的融合
Laravel增加自定义助手函数
When the activity is in progress! Click the link to join the live studio to participate in "can AI really save energy?" Let's have a discussion!
讯飞2021年营收183亿:同比增41% 净利为15.56亿
RebbitMQ的初步了解
云呐|如何管理好公司的固定资产,固定资产管理怎么做
解读机器人创造出来的艺术