当前位置:网站首页>margin 等高布局
margin 等高布局
2022-07-07 18:43:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
<div id="main">
<div id="left">
我是左边的内容的啦啦啦啦。。。。<br> 我是左边的内容的啦啦啦啦。。。。<br> 我是左边的内容的啦啦啦啦。。。。<br> 我是左边的内容的啦啦啦啦。。。。<br> 我是左边的内容的啦啦啦啦。。。。<br> </div> <div id="right"> 左边的内容...哈哈哈哈哈 </div></div><style>#main{ overflow:hidden; width:500px; margin:0 auto;}#left{ float:left; width:390px; background:#eee;}#right{ float:right; width:100px; background:#ccc;}#left,#right{ margin-bottom:-1000px; padding-bottom:1000px;}</style>
overflow:hidden;
margin-bottom:-1000px;
padding-bottom:1000px;
很巧妙的利用了 margin 做到了等高布局。。仅仅是一个看起来的。实际上高度不相等的。
仅仅是隐藏了超出的部分
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116434.html原文链接:https://javaforall.cn
边栏推荐
- Don't fall behind! Simple and easy-to-use low code development to quickly build an intelligent management information system
- ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- 开发一个小程序商城需要多少钱?
- POJ 1742 Coins ( 单调队列解法 )「建议收藏」
- 阿里云有奖体验:如何通过ECS挂载NAS文件系统
- 一. 基础概念
- Implement secondary index with Gaussian redis
- ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- Make this crmeb single merchant wechat mall system popular, so easy to use!
- Implement secondary index with Gaussian redis
猜你喜欢
CodeSonar通过创新型静态分析增强软件可靠性
Splicing and splitting of integer ints
Mongodb由浅入深学习
OneSpin 360 DV新版发布,刷新FPGA形式化验证功能体验
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
Mysql子查询关键字的使用方式(exists)
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
CodeSonar如何帮助无人机查找软件缺陷?
随机推荐
C语言多角度帮助你深入理解指针(1. 字符指针2. 数组指针和 指针数组 、数组传参和指针传参3. 函数指针4. 函数指针数组5. 指向函数指针数组的指针6. 回调函数)
4G设备接入EasyGBS平台出现流量消耗异常,是什么原因?
Spark 判断DF为空
When easygbs cascades, how to solve the streaming failure and screen jam caused by the restart of the superior platform?
Write a jump table
[award publicity] issue 22 publicity of the award list in June 2022: Community star selection | Newcomer Award | blog synchronization | recommendation Award
ISO 26262 - 基于需求测试以外的考虑因素
有用的win11小技巧
C语言 整型 和 浮点型 数据在内存中存储详解(内含原码反码补码,大小端存储等详解)
Helix QAC 2020.2新版静态测试工具,最大限度扩展了标准合规性的覆盖范围
想杀死某个端口进程,但在服务列表中却找不到,可以之间通过命令行找到这个进程并杀死该进程,减少重启电脑和找到问题根源。
Is it safe to open a stock account at present? Can I open an account online directly.
[paper reading] maps: Multi-Agent Reinforcement Learning Based Portfolio Management System
写一下跳表
【C语言】指针进阶---指针你真的学懂了吗?
备份 TiDB 集群到持久卷
How to choose financial products? Novice doesn't know anything
SQL注入报错注入函数图文详解
嵌入式系统真正安全了吗?[ OneSpin如何为开发团队全面解决IC完整性问题 ]
开发那些事儿:Go加C.free释放内存,编译报错是什么原因?