【发布时间】:2014-10-29 23:10:09
【问题描述】:
如何使 div 内的容器居中对齐.... 我给了左右自动边距,但它不起作用.... 在 iphone 布局中它变成居中对齐 在下面提供我的代码....
http://jsfiddle.net/2a5mW/1/embedded/result/
<div class="hide fade in" id="signup-modal" conduit_fixed_handled="true" conduit_orig_mtop_val="-306" style=" display: block;" aria-hidden="false">
<div class="page-title">Add New Vendor</div>
<div>
<span>Vendor no</span>
100012 <span style="">Starting no:</span><span style="color: red;">100000</span>
</div>
<h4 class="billingAddress">Billing Address</h4>
<form method="POST" autocomplete="off" id="auth-form">
<input type="hidden" name="usertype" value="3" readonly="">
<fieldset>
<input type="text" placeholder="Company Name " name="fullname" maxlength="30" required="required" id="id_username">
<input type="text" placeholder="Contact Name" name="company" maxlength="30" required="required" id="id_company">
<input type="text" placeholder="Address1" name="email" maxlength="75" required="required" id="id_email">
<input type="password" placeholder="Address2" name="password" maxlength="16" required="required" id="id_password">
<input type="password" placeholder="Address3" name="repassword" required="required" id="id_repassword">
<input type="text" placeholder="City " name="fullname" maxlength="30" required="required" id="id_username">
<div class="controls"
【问题讨论】:
标签: javascript html css