我需要輸入類型元素居中對齊相等。我以某種方式設法平等對齊輸入類型,但現在它左對齊。我需要它是中心對齊。以html/css爲中心的div輸入元素
.container {
width: 500px;
clear: both;
}
.container input {
width: 100%;
clear: both;
}
<div class="container"> \t
<label>EMP ID </label><input type="text" id="empid"> <br><br>
<label>EMP NAME</label><input type="text" id="empname"> <br><br>
<label>EMAIL ID</label><input type="text" id ="emailid"> <br><br>
</div> \t
<input type="submit" class="appButton" value="INSERT" onclick="insert();"> <br><br>
\t \t
的[水平居中一個div在一個div]可能的複製(http://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div) – easwee