下面是代码,一个div中有两个按钮。
如何在固定大小的 div 中水平居中按钮?
<div style="position:relative; width: 300px; height: 30px; border: 1px solid;">
<input type="button" value="ok" style="position:relative; width: 70px; height: 30px;">
<input type="button" value="ok" style="position:relative; width: 70px; height: 30px;">
</div>
如何在固定大小的 div 中水平居中按钮?