gpt4 book ai didi

jquery - 使 Bootstrap 选择响应

转载 作者:太空狗 更新时间:2023-10-29 12:25:10 24 4
gpt4 key购买 nike

我有搜索控件,我可以在其中添加文本框、选择和按钮。

    <div class="col-md-10"> 
<div class="row">
<div id="Search_Widget_tr3" class="input-group col-md-12">
<input type="text" class="form-control" placeholder="enter title" id="homeSearchInput"/>
<div class="input-group-btn clearfix">
<select class="selectpicker" multiple title='Platforms' data-container="body" data-count-selected-text="Platforms" data-selected-text-format="count>0" data-style="btn btn-default" data-allOptionIsSelected="false">
<option value="All">All Platforms</option>
<option value="Mobile Phone;Tablet;Windows Phone;PlayStation Certified Device;Windows 8 App;PlayStation Mobile">Mobile App/Tablet</option>
<option value="Nintendo DS;Nintendo DSi;Nintendo 3DS">Nintendo DS/DSi/3DS</option>
<option value="PlayStation 3">PlayStation 3</option>
<option value="PlayStation 4">PlayStation 4</option>
<option value="PSP;PS Vita">PlayStation Vita/PSP</option>
<option value="Wii">Wii</option>
<option value="Wii U">Wii U</option>
<option value="Linux;Macintosh;PC DVD;PC DVD-ROM;Windows CE;Windows PC;Windows 8 App">Windows/Mac</option>
<option value="Xbox 360">Xbox 360</option>
<option value="Xbox One">Xbox One</option>
<option value="3DO;Atari Jaguar;Atari Lynx;Cable Box;CDI;Dreamcast;DVD;Game Boy;Game Boy Advance;Game Boy Color;Game Gear;Game Wave(Custom DVD gaming platform);Game Cube;Gizmondo;Hyperscan;iPod;N-Gage;Neo Geo Pocket Color;Nintendo;Nintendo 64;Nintendo Game Boy;NUON;Online;Other;Palm Pilot;PDA(Palm, Win CE, etc.);PlayStation&2FPS one;PlayStation 2;Plug-and-Play;Pocket Arcade;Pocket PC;Pokemon Mini;Sega 32x;Sega CD;Sega Dreamcast;Sega Genesis;Sega Pico;Sega Pocket Arcade;Sega Saturn;Super Nintendo;VG Pocket;Virtual Boy;Web Browser;Web Site;Web TV;Xbox;Zodiac;Firefox">Other Platforms</option>
</select>
<button class="btn btn-default dropdown-toggle click-search" type="button" aria-expanded="false">
Search <span class="glyphicon glyphicon-search"></span>
</button>
</div><!-- /btn-group -->
</div><!-- /input-group -->

</div> </div>

问题:我无法生成 <select> react 灵敏;它的宽度是固定的。

当我想将它包裹在某个容器中并设置 col-md-5 时到这个包装器然后我在输入和选择之间丢失了圆 Angular (我不想添加一些新样式只是为了使 Angular 变圆)

在这里live example

最佳答案

简单的解决方案:将类 form-control 添加到选择元素

关于jquery - 使 Bootstrap 选择响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28675285/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com