块垂直居中
绝对移动 50%
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
#one{
width: 400px;
height: 600px;
background: rgba(0,255,255,0.6);
position: relative;
}
#two{
width: 30px;
height:30px;
background: rgba(0,255,0,1);
/*display: inline-block;*/
vertical-align: middle;
position: absolute;
top:50%;
left: 0;
/*bottom: 50%;*/
}
</style>
</head>
<body>
<div id="one">
<div id="two"></div>
</div>
</body>
</html>