我的問題是在我的引導模式中使用選擇的顯示器出現問題,任何人都知道這是什麼問題?選擇的插件在bootstrap模式下顯示效果不佳
這裏是截圖
****這裏是我的代碼,我用笨和Bootstrap框架****
<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" class="modal hide fade" id="add_form">
<div class="modal-header" style="cursor:move">
<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
<h3 id="myModalLabel" title="drag me around">Add Skill <i class="icon-move" style="margin-top:10px;"></i></h3>
</div>
<?php echo form_open('skill/add_skill'); ?>
<div class="modal-body" style="min-height:400px;">
<div class="form-horizontal">
<div class="control-group">
<div class="control">
<label for="control-label" class="control-label"></label>
<code>Note :</code> All field mark with <code>*</code> are required.
</div>
</div><!-- /control-group -->
<div class="control-group template">
<label for="input01" class="control-label">Tenant*:</label>
<div class="controls">
<select name="tenant" data-placeholder="Select Tenant" class="chzn_a span7 ">
<option value=""></option>
<?php if(isset($tenant_records)) : foreach($tenant_records as $row) : ?>
<option value="<?php echo $row->tenantid; ?>" data-id="<?php echo $row->tenantid; ?>"><?php echo $row->name; ?></option>
<?php endforeach; ?>
<?php endif; ?>
</select>
</div>
</div>
<div class="control-group template">
<label for="input01" class="control-label">Skill*:</label>
<div class="controls">
<input id="title" name="skill" size="30" type="text" value="<?php echo set_value('skill'); ?>" placeholder="Skill" title="Eg: Skill" />
</div>
</div>
<div class="control-group template">
<label for="input01" class="control-label">Description*:</label>
<div class="controls">
<input id="title" name="description" size="30" type="text" value="<?php echo set_value('description'); ?>" placeholder="Description" title="Eg: Description" />
</div>
</div>
</div>
</div>
<div class="modal-footer">
<input type="hidden" name="module_index" id="module_index" value="<?php echo site_url('skill/index/'); ?>" />
<button data-dismiss="modal" class="btn">Close</button>
<button class="btn btn-primary" type="submit">Save changes</button>
</form>
</div>
</div>
這裏是我選擇用
http://harvesthq.github.io/chosen/
所以我認爲問題是輸入寬度?嘗試使用Chrome Inspect Element或類似的工具來分析應用於輸入的CSS –
對不起,延遲迴復,即使我設置了寬度,它仍然是相同的 – Oscar
您是如何設置寬度的?我認爲有一些衝突的風格,這就是爲什麼使用像Chrome Inspect Element這樣的工具將有助於檢查實際上正在應用哪些樣式以及哪些樣式被覆蓋 –