首页 > 技术文章 > 上下居中css

gaocong 2017-03-17 09:34 原文

.css{
position: relative,
top: 50%,
transform: translateY(-50%)

} 

 

推荐阅读