【发布时间】:2017-08-18 18:18:11
【问题描述】:
我想知道是否知道解决我的头痛的方法,我希望第三张图片位于第一张图片下方。但由于第二个图像高度大于第一个,它会产生空白空间。
代码:
每个图像代码块看起来都一样
column_1_5_of_3 {
width: 100%;
}
col_nomargin {
display: inline-block;
position: relative;
float: left;
margin: 0% 0% 0.25% 0.25%;
overflow: hidden;
}
portimg {
width: 100%;
height: auto;
margin: 0% 0 0% 0%;
transition: .5s ease;
display: block;
}
column_1_5_of_3 {
width: 100%;
}
col_nomargin {
display: inline-block;
position: relative;
float: left;
margin: 0% 0% 0.25% 0.25%;
overflow: hidden;
}
portimg {
width: 100%;
height: auto;
margin: 0% 0 0% 0%;
transition: .5s ease;
display: block;
}
<div class="col_nomargin column_1_of_3">
<img class="portimg" src="" alt="">
如果有什么我遗漏的或有任何问题。请告知
感谢大家的帮助
【问题讨论】:
-
欢迎来到 Stack Overflow。请检查:How do I ask a good question?
-
使用这个 jquery 插件,它会自动对齐你的 div。插件网址:bestjquery.com/?uoa1gOVh
-
嘿,使用“代码片段”你的答案框输入你的完整 HTML CSS 代码然后你问问题解决你的问题