当前位置:网站首页>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
边栏推荐
- 写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
- 智能软件分析平台Embold
- H3C s7000/s7500e/10500 series post stack BFD detection configuration method
- 最新版本的CodeSonar改进了功能安全性,支持MISRA,C ++解析和可视化
- 凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
- Network principle (1) - overview of basic principles
- guava多线程,futurecallback线程调用不平均
- Implement secondary index with Gaussian redis
- How to implement safety practice in software development stage
- 恶魔奶爸 B1 听力最后壁垒,一鼓作气突破
猜你喜欢
Klocwork code static analysis tool
Tensorflow2. How to run under x 1 Code of X
How to meet the dual needs of security and confidentiality of medical devices?
Tensorflow2.x下如何运行1.x的代码
使用camunda做工作流设计,驳回操作
I wrote a markdown command line gadget, hoping to improve the efficiency of sending documents by garden friends!
AADL inspector fault tree safety analysis module
Network principle (1) - overview of basic principles
让这个CRMEB单商户微信商城系统火起来,太好用了!
H3C S7000/S7500E/10500系列堆叠后BFD检测配置方法
随机推荐
Small guide for rapid formation of manipulator (11): standard nomenclature of coordinate system
字符串中数据排序
写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
写一下跳表
数值法求解最优控制问题(〇)——定义
Validutil, "Rethinking the setting of semi supervised learning on graphs"
凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
Details of C language integer and floating-point data storage in memory (including details of original code, inverse code, complement, size end storage, etc.)
Apifox interface integrated management new artifact
Deep learning model compression and acceleration technology (VII): mixed mode
Measure the height of the building
Small guide for rapid formation of manipulator (12): inverse kinematics analysis
[concept of network principle]
guava多线程,futurecallback线程调用不平均
MySQL约束之默认约束default与零填充约束zerofill
Lingyun going to sea | yidiantianxia & Huawei cloud: promoting the globalization of Chinese e-commerce enterprise brands
使用 BR 恢复 Azure Blob Storage 上的备份数据
Onespin | solve the problems of hardware Trojan horse and security trust in IC Design
How does codesonar help UAVs find software defects?
POJ 1742 Coins ( 单调队列解法 )「建议收藏」