在父div中垂直对齐div?
这个问题在这里已经有了答案:
尝试:
.caption{
position: relative;
top: 50%;
transform: translateY(-50%);
}
资料来源:http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/
链接地址: http://www.djcxy.com/p/75875.html上一篇: Align div vertically within parent div?
下一篇: Center a div in another div when parent div height is undefined