我正在使用Foundation Zurb创建一个 Web 应用程序。我使用自定义表单来设置选择区域的样式,并且在我拥有选择字段的某些页面上这样做: 当它们看起来像这样时:
代码
<div class="row">
<div class="small-6 columns">
<!-- country -->
<div class="error-spacer">
<span class="form-error-message" id="country_error"> </span>
<p>
<select id="country" name="country" title="Country">
<option value="">Country</option>
<option data-list="united-states-list" value="United States">United States</option>
<option data-list="united-kingdom-list" value="United Kingdom">United Kingdom</option>
<option data-list="australia-list" value="Australia">Australia</option>
</select>
</p>
</div>
</div>
<!-- /country -->
<div class="small-6 columns">
<!-- region -->
<div class="error-spacer">
<span class="form-error-message" id="region_error"> </span>
<p>
<select id="region" name="region" title="Region">
<option value="">Please Select Country</option>
</select>
</p>
</div>
<!-- /region -->
</div>
</div>