当前位置:网站首页>Explore flex basis
Explore flex basis
2022-07-28 02:26:00 【imkaifan】
flex-basis Property defines before allocating extra space , Spindle space occupied by the project (main size).
Browser according to this property , Calculate if the spindle has extra space . Its default value is auto, The original size of the project .

<!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>
.wrap {
display: flex;
width: 500px;
height: 70px;
border: 1px solid #ccc;
}
.i {
flex-basis: 20px;
width: 150px;
background-color: aqua;
}
.ii {
flex-basis: 50px;
background-color: bisque;
}
.iii {
flex-basis: auto; /* The default value is auto That is to say, the original size of the project shall prevail */
width: 100px;
background-color: blueviolet;
}
</style>
</head>
<body>
<div class="wrap">
<div class="i"></div>
<div class="ii"></div>
<div class="iii"></div>
</div>
</body>
</html>

<!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>
.wrap {
display: flex;
flex-direction: column;
width: 40px;
height: 700px;
border: 1px solid #ccc;
}
.i {
flex-basis: 20px;
height: 90px;
width: 150px;
background-color: aqua;
}
.ii {
flex-basis: 50px;
background-color: bisque;
}
.iii {
flex-basis: auto; /* When the direction of the spindle changes , Actually flex-basis That means height */
width: 100px;
height: 300px;
background-color: blueviolet;
}
</style>
</head>
<body>
<div class="wrap">
<div class="i"></div>
<div class="ii"></div>
<div class="iii"></div>
</div>
</body>
</html>
边栏推荐
- MySQL's way to solve deadlock - lock analysis of common SQL statements
- Common video resolution
- Plato Farm在Elephant Swap上铸造的ePLATO是什么?
- Which database is the fastest to query data only?
- OBS keyboard plug-in custom DIY
- Unity saves pictures to albums and rights management
- How to evaluate the effectiveness of R & D personnel? Software Engineer reports help you see everyone's contribution
- Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report
- 微信小程序实现动态横向步骤条的两种方式
- MySQL pymysql operation
猜你喜欢

智能合约安全——selfdestruct攻击

MySQL锁系列之锁算法详解(荣耀典藏版)

Sample imbalance - entry 0

Read Plato & nbsp; Eplato of farm and the reasons for its high premium

Flume(5个demo轻松入门)
![[Yugong series] July 2022 go teaching course 019 - for circular structure](/img/40/b4e673de0462c3dd6ca8b8fb513914.png)
[Yugong series] July 2022 go teaching course 019 - for circular structure

A lock faster than read-write lock. Don't get to know it quickly

清除浮动的原因和六种方法(解决浮动飞起影响父元素和全局的问题)

regular expression

11-Django-基础篇-数据库操作
随机推荐
重要安排-DX12引擎开发课程后续直播将在B站进行
了解加密行业的“下一个大趋势”——Ventures DAO
「冒死上传」Proe/Creo产品结构设计-止口与扣位
"Risking your life to upload" proe/creo product structure design - seam and buckle
Go learning 01
Talk to ye Yanxiu, an atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Principle and implementation of cross entropy
Day6 函数和模块的使用
Skywalking distributed system application performance monitoring tool - medium
Behind every piece of information you collect, you can't live without TA
【ROS进阶篇】第九讲 基于Rviz和Arbotix控制的机器人模型运动
支付宝小程序授权/获取用户信息
Flex开发网页实例web端
OBS keyboard plug-in custom DIY
Structure pseudo class selector - find single - find multiple - nth of type and pseudo elements
[Star Project] small hat aircraft War (V)
Go learn 02 basic knowledge
Ceresdao: new endorsement of ventures Dao
[Star Project] small hat aircraft War (VI)
Sample imbalance - entry 0