如何让图片,在DIV框中居中?高度设置一样了。。
html吧
全部回复
仅看楼主
level 1
如何让图片,在DIV框中居中?高度设置一样了。
原理:图片套在DIV里,左右居中。可代码怎么写都写不出来。求大神。。。
.img123 {
width: 350px;
height: 495px;
background: #666666;
overflow: hidden;
}
.img123 img {
height: 495px;
}
2018年01月06日 06点01分 1
level 1
试过,无效。[泪] 全试过了。。没法自动,,除非给他指定数值
2018年01月06日 08点01分 3
1