html - 底部对齐图像

标签 html css

我试图将最后两张图像与第一张图像对齐到底部,但没有成功。

.image-wrap img {

width:100%;
height:auto;
positon:absolute;
display:inline-block;
vertical-align: bottom;
display: table-cell;}

.image-wrap {

text-align:center;
width: 100%;
height:auto;
position: relative;
vertical-align: bottom;

代码:http://jsfiddle.net/uvh7w/

最佳答案

在 CSS 末尾添加以下行:http://jsfiddle.net/RrLx7/ .这个解决方案更像是一个补丁。对于更全面的方法,您的大部分代码将需要进行一些大修。我会把它留给你去做。

[class*='col-'] {
    float: none;
    padding-right: 20px; 
}

#hehe > .grid.grid-pad {
    display: table;
    width: 100%;
}

#hehe > .grid.grid-pad > * {
    display: table-cell;
    outline: 1px solid blue;
}

关于html - 底部对齐图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24843901/

相关文章:

html - 使用xsl填充html表格中的空行

html css z-index 不工作,我做错了什么?

html - 删除绝对定位 div 周围的空白空间

css - 两个元素共享半透明(没有重叠)?

悬停时的 CSS 问题 - 摇晃效果

html - 添加内容时侧边栏一直消失

css - 如何在 React Native 中使用 Flex 居中组件?

html - 如何仅在较小的屏幕/设备上隐藏标题元素?

html - 将两个元素设置为 100% 宽度,但一个看起来比另一个宽得多

html - CSS 按钮边框在 Chrome 中不起作用