惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
腾讯CDC
GbyAI
GbyAI
I
InfoQ
博客园 - Franky
G
Google Developers Blog
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Vercel News
Vercel News
博客园_首页
MyScale Blog
MyScale Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium
V
V2EX
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
大猫的无限游戏
大猫的无限游戏
The GitHub Blog
The GitHub Blog

博客园 - 饭

This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse WinForm使用Python.Net调用Yolov8将图像显示在pictureBox控件上. EPPlus操作透视表过滤数据 JS/html5 文字转语音 关于IIS部署.NET7的记录 nginx伪静态过滤静态文件 阿里云Nginx伪静态 记录一些壁纸/图片网站 js四舍五入. javascript四舍五入 真正四舍五入 不是四舍六入五成双 比较两个相同类型的实例是否相同, 支持忽略指定字段. entity framework 实现按照距离排序[转] 在iframe内页触发顶层页面body的blur事件 bootstrap 模态窗口 多重/多个弹窗滚动条补丁 2019年6月车型数据Access数据库+缩略图 更新于2019年6月5日. sql server 2012 分页/dapper/C#拼sql/免储存过程/简易 正则: 匹配除了某些单词之外的其他单词 按顺序动态加载js, 可控版本, 有回调 asp.net mvc json数据缓存 知识点关键词(记录一下) TimeSpan格式化字符串格式(摘)
正padding负margin实现多列等高布局(转)
· 2019-10-19 · via 博客园 - 饭

转自: 巧妙运用CSS中的负值 (http://www.webhek.com/post/2345qwerqwer.html)

代码来自: https://codepen.io/Chokcoco/pen/ZgrmVy

好像存在了很久的css技巧, 可惜自己缺没听过, 真是井底之蛙了. 记得以前用过js来实现, 惭愧啊.

<!-- <h2>padding + margin + overflow,实现多列等高效果,兼容性好</h2> -->
<h2></h2>
<div class="g-padmar">
    <div class="g-left">
        左侧布局内容<br/>
    </div>
    <div class="g-right">
        右侧布局内容<br/>
        右侧布局内容<br/>
        右侧布局内容<br/>
        右侧布局内容<br/>
    </div>
</div>
h2 {
  text-align: center;
  line-height: 60px;
  height: 60px;
  font-size: 20px;
  background: #00bcd4;
  color: #fff;
}

.g-container {
  line-height: 2;
  color: #fff;
}

.g-padmar {
  position: relative;
  overflow: hidden;
}
.g-padmar .g-left {
  float: left;
  width: 200px;
  background: #4caf50;
  padding-bottom: 9999px;
  margin-bottom: -9999px;
}
.g-padmar .g-right {
  width: 100%;
  margin-left: 200px;
  background: #99afe0;
  padding-bottom: 9999px;
  margin-bottom: -9999px;
}