我有两个按钮,但它们并排显示.我想让他们在彼此之上.
<div id="top">
<div>
<label for="entityDropDown">Entity: </label>
<select id="entityDropDown"></select>
<div id="removeEntity"><a>?</a></div>
</div>
<br><br>
<div id="entityStatus">
<div>
<label for="entityAvailable">Entity Available</label>
<select id="entityAvailable" multiple=""></select>
</div>
<div id="moveButtons">
<button type="button">Add User</button>
<button type="button">Remove</button>
</div>
<div>
<label for="entityAssigned">Entity Assigned</label>
<select id="entityAssigned" multiple=""></select>
</div>
</div>
<br style="clear:both;">
</div>
Run Code Online (Sandbox Code Playgroud)
只是:
#moveButtons button {
display:block;
}
Run Code Online (Sandbox Code Playgroud)
演示: http ://jsfiddle.net/vS9vJ/1/