多行垂直居中做到了 但如何同时做到水平居中呀
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box {
height: 300px;background: red;
}
.con {
display: inline-block;
vertical-align: middle;
}
p {
margin-left: 800px;
}
i {
display: inline-block;
height: 100%;
vertical-align: middle;
}
</style>
</head>
<body>
<div >
<div>
<p>1hang</p>
<p>1hang</p>
<p>1hang</p>
<p>1hang</p>
<p>1hang</p>
</div><i></i>
</div>
</body>
</html>