当前位置:网站首页>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
边栏推荐
- Cantata9.0 | new features
- You want to kill a port process, but you can't find it in the service list. You can find this process and kill it through the command line to reduce restarting the computer and find the root cause of
- How does codesonar help UAVs find software defects?
- 让这个CRMEB单商户微信商城系统火起来,太好用了!
- Solve the problem that the executable file of /bin/sh container is not found
- 【论文阅读】MAPS: Multi-agent Reinforcement Learning-based Portfolio Management System
- Implement secondary index with Gaussian redis
- Phoenix JDBC
- 复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
- 上海交大最新《标签高效深度分割》研究进展综述,全面阐述无监督、粗监督、不完全监督和噪声监督的深度分割方法
猜你喜欢
MySQL约束之默认约束default与零填充约束zerofill

I wrote a markdown command line gadget, hoping to improve the efficiency of sending documents by garden friends!
CodeSonar通过创新型静态分析增强软件可靠性
Codesonar enhances software reliability through innovative static analysis

使用camunda做工作流设计,驳回操作

Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation

VMWare中虚拟机网络配置

最新版本的CodeSonar改进了功能安全性,支持MISRA,C ++解析和可视化
SQL注入报错注入函数图文详解

【C语言】指针进阶---指针你真的学懂了吗?
随机推荐
How to meet the dual needs of security and confidentiality of medical devices?
图扑数字孪生煤矿开采系统,打造采煤“硬实力”
Useful win11 tips
恶魔奶爸 B2 突破语法,完成正统口语练习
恶魔奶爸 A3阶段 近常速语流初接触
MySQL约束之默认约束default与零填充约束zerofill
Precautions for cjson memory leakage
Flask1.1.4 Werkzeug1.0.1 源码分析:路由
程序猿赚的那点钱算个P啊!
【OpenCV 例程200篇】223. 特征提取之多边形拟合(cv.approxPolyDP)
理财产品要怎么选?新手还什么都不懂
机械臂速成小指南(十一):坐标系的标准命名
写了个 Markdown 命令行小工具,希望能提高园友们发文的效率!
Prometheus remote_write InfluxDB,unable to parse authentication credentials,authorization failed
神兵利器——敏感文件发现工具
恶魔奶爸 B3 少量泛读,完成两万词汇量+
You want to kill a port process, but you can't find it in the service list. You can find this process and kill it through the command line to reduce restarting the computer and find the root cause of
Splicing and splitting of integer ints
如何满足医疗设备对安全性和保密性的双重需求?
POJ 1742 Coins ( 单调队列解法 )「建议收藏」