让两个DIV居中显示

下面是源代码:
<style>
div {
position:absolute;
top:50%;
left:50%;
margin:-100px 0 0 -120px;
}
</style>
<div style="background:#404040;120px;height:200px;"></div>
<div style="background:#FD7C03;120px;height:200px;margin:-100px 0 0 0px;"></div>
原文地址:https://www.cnblogs.com/sheseido/p/1862384.html