你好
在我们的网站上,我的页面上有“立即购买”按钮
https://www.nutricentre.com/m-300-herbs-hands-healing.aspx
控制此的样式是
.item .price {
color:#8c9c54;
font-size:14px;
font-weight: bold;
/*
position: absolute;
bottom: 48px;
left: 0px;
width: 150px;
*/
text-align: center;
margin-bottom: 45px;
}
.item a.blue_btn {
position: absolute;
bottom: 10px;
left: 15px;
cursor: pointer;
}
不管上面的文字如何,我知道如何使它成一直线吗?
最佳答案
我建议为最简单的解决方案设置一个min-height: 370px;
。
您不希望为此设置静态高度,因为如果您有一个描述较长的项目,它不会自动添加空间,而只会填充所有内容。
关于html - 自动对齐按钮,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21338306/