当前位置:网站首页>display-inline+calc实现左中右布局,中间自适应
display-inline+calc实现左中右布局,中间自适应
2022-07-26 10:38:00 【songywaa】
.box {
clear: both;
/* 干掉间隙 */
font-size: 0
}
.left {
display: inline-block;
width: 200px;
font-size: 16px;
background-color: #0000FF;
}
.right {
display: inline-block;
width: 200px;
font-size: 16px;
background-color: aqua;
}
.center {
display: inline-block;
width: calc(100% - 400px);
font-size: 16px;
background-color: aquamarine;
}
<div class="box">
<div class="left">我是左边</div>
<div class="center">我是中间</div>
<div class="right">我是右边</div>
</div>
边栏推荐
- 同步方法中不使用asyncTask<T> 修饰和await获取异步返回值(同步方法中调用异步方法)
- Navicat15 MySQL (centos7) connected to local virtual machine
- 剑指Offer(五十二):正则化表达式
- 并行、并发及对于高并发优化的几个方向
- [leetcode每日一题2021/2/18]【详解】995. K 连续位的最小翻转次数
- 文案秘籍七步曲至----文献团队协作管理
- .net operation redis set unordered collection
- 剑指Offer(四十四):翻转单词顺序序列
- [leetcode daily question 2021/4/23]368. Maximum divisible subset
- 扫雷pro版2021-08-19
猜你喜欢

第8期:云原生—— 大学生职场小白该如何学

抽象工厂及其改进示例

Centos8 (liunx) deploying WTM (asp.net 5) using PgSQL
![[leetcode daily question 2021/5/8]1723. The shortest time to complete all work](/img/e7/a48bb5b8a86cbc4cd5b37bb16661a8.png)
[leetcode daily question 2021/5/8]1723. The shortest time to complete all work

Redis Docker实例与数据结构

第7期:内卷和躺平,你怎么选

记给esp8266烧录刷固件

Oracle cannot start tnslistener service cannot start

【机器学习小记】【搭建循环神经网络及其应用】deeplearning.ai course5 1st week programming(keras)

.NET5WTM(ASP.NET Core) PGSql开箱操作
随机推荐
关于硕博士开题报告编写的思考
L2-005 set similarity (intersection of vector and set)
.net operation redis string string
控制随机抽中几率 [ C# | Random ]
Okaleido ecological core equity Oka, all in fusion mining mode
MySQL速学笔记-2021-08-31
C语言鹏哥20210812C语言函数
剑指Offer(二十):包含min函数的栈
剑指Offer(五十二):正则化表达式
uniapp使用简单方法signalR(仅用于web调试,无法打包app)
RT-Thread 学习笔记(七)---开启基于SPI Flash的elmfat文件系统(中)
Uninstall Meizu app store
Tradingview tutorial
剑指Offer(二十一):栈的压入、弹出序列
Dry goods likeshop takeout order system is open source, 100% open source, no encryption
[leetcode daily question 2021/2/18] [detailed explanation] minimum number of turns of 995. K continuous bits
Redis docker instance and data structure
json_ object_ put: Assertion `jso->_ ref_ count > 0‘ failed. Aborted (core dumped)
超图 影像 如何去除黑边(两种方法)
[leetcode daily question 2021/4/29]403. Frogs cross the river