试图在 Bootstrap 中将两个表单并排放置。任何想法如何?
基本上,我只是在右侧有太多的空白,我想将键码和邮政编码形式放在同一行,这样它在视觉上看起来很舒服。
http://rsatestamls.kaliocommerce.com/cart.aspx
我的代码如下所示:
<div class="cartoptionbox">
<div class="control-group">
<div class="controls">
<form class="form-horizontal form-inline" method="post" id="Keycode">
<input type="hidden" name="formName" value="dmiformCouponKeycodeHandler">
<input type="hidden" name="pageURL" value="[[DMI:Expression value='Core.GetCurrentPageName()' ]][[/DMI:Expression]]">
<h4 class="heading4"> Enter source code for discounted pricing.</h4>
<fieldset>
<label class="label" for="keycode" title="Keycode">
Source Code:
</label>
<input type="text" id="keycode" name="keycode" />
<input id="cart-keycode-apply" type="submit" class="btn btn-orange" value="Apply" />
</fieldset>
</form>
<form class="form-horizontal form-inline" id="ShipEstimate">
<h4 class="heading4"> Enter your Zip Code to get a shipping estimate.</h4>
<fieldset>
<label class="label" for="PostalCode_SHIP" title="Zip">
Zip Code:
</label>
<input type="text" id="PostalCode_SHIP" value="" name="PostalCode_SHIP" OnChange='populateCartTotalInCartPage();' minlength="5" />
<input type="hidden" id="COUNTRY_SHIP" name="COUNTRY_SHIP" value="US" />
<input type="button" OnClick="populateCartTotalInCartPage();toggleTable();" value="Get Quotes" class="btn btn-orange">
</fieldset>
</form>
<script>
$("#ShipEstimate").validate();
</script>
</div>
</div>
</div>