【发布时间】:2018-12-25 14:32:20
【问题描述】:
如何让产品框的高度响应相同,当我从管理面板为我的产品插入不同尺寸的图像时,它会显示框的不同高度,
我的 CSS
/* Products Styles */
.flex-wrap {
display: flex;
flex-wrap: wrap;
}
#hot h2 {
text-transform: uppercase;
font-size: 36px;
color: #4993e4;
font-weight: 100;
text-align: center;
}
#content {
padding-left:25px;
}
.single {
width:290px;
margin: auto;
}
}
@media (max-width: 768px) {
.single {
width:100;
margin: auto;
}
}
#content .product {
background:#fff;
border: solid 1px #e6e6e6;
box-sizing: border-box;
margin-bottom: 30px;
}
#content .product .text p.price {
font-size:18px;
text-align:center;
font-weight:300;
}
#content .product .text .buttons {
clear:both;
text-align:center;
}
#content .product .text h3 {
text-align:center;
font-size:20px;
}
#content .product .text h3 a {
color:rgb(85, 85, 85);
}
#content .product .text {
padding:10px 10px 0px;
}
#content .product .text .buttons .btn {
margin-bottom:10px;
}
【问题讨论】:
-
如果您可以将 html 与 css 一起上传,将会有很大帮助!
-
此链接没有帮助,因为您面临的问题未在该源代码中突出显示。
-
其实我所有的代码都是用php写的,这里是php文件jsfiddle.net/programlover/a83jof6q/3