【发布时间】:2018-07-22 17:23:43
【问题描述】:
我想在自定义 MainDiv 中对齐多个(在本例中为 3 个)div 以获得如下结果:
<div style="position: fixed; width:100%; height: 12%; left:0%; top: 0%; background: black">
<div style="color: white; left: 5%; margin-top: 5%; position: fixed; font-size: 10px">INFORMATION A</div>
<div style="color: white; margin:0 auto; margin-top: 5%; display: table; font-size: 10px">INFORMATION B</div>
<div style="color: white; right: 5%; margin-top: 5%; position: fixed; font-size: 10px">INFORMATION C</div>
</div>
我该如何解决这个问题?
【问题讨论】:
-
需要固定位置吗?
标签: javascript html css alignment