【发布时间】:2017-09-19 23:54:02
【问题描述】:
我有带有引导类的 div 这是代码
<div class="col-lg-12">
<div style="text-align: center; width: 50%; font-size: 20px; display: inline-block; position: absolute;top: 0;left: 0;bottom: 0;right: 0;margin: auto;">
<p>
The latest offered radiology management systems are capable of helping the radiologists to provide exacting digital images and data. Viewing different types of images from various examinations is very convenient with this particular software. Through multiple viewing processes, it is possible to view the images while other people are seeing them. Viewing the imagery is satisfying because of the impressive features of the software.
</p>
</div>
</div>
我需要将这个 div 垂直和水平居中
<div style="text-align: center; width: 50%; font-size: 20px; display: inline-block; position: absolute;top: 0;left: 0;bottom: 0;right: 0;margin: auto;">
我试试这种风格
style="text-align: center; width: 50%; font-size: 20px; display: inline-block; position: absolute;top: 0;left: 0;bottom: 0;right: 0;margin: auto;"
但它不是垂直居中,而是水平居中。
我的错误在哪里?
【问题讨论】:
标签: jquery html css asp.net twitter-bootstrap