div不支持valign,不好实现,有的通过手工计算设置margin等,但多行的时候就不行了
建议用table
<style>
td{vertical-align:middle;height:500px;background-color:red}
</style>
<table>
<tr><td>
不如乘此清风去,觅取留侯辟谷方
</td></tr></table>
建议用table
<style>
td{vertical-align:middle;height:500px;background-color:red}
</style>
<table>
<tr><td>
不如乘此清风去,觅取留侯辟谷方
</td></tr></table>
td{vertical-align:middle;text-align:center;layout-flow:vertical-ideographic;height:500px;background-color:red}
</style>
<table><tr>
<td>
不如乘此清风去,觅取留侯辟谷方
</td>
</tr></table>