<select id="strategies" multiple="multiple" data-native-menu="false" class="selectpicker">
<option>Service Strategies</option>
<option value="50-Peer and/or Family Delivered">50-Peer and/or Family Delivered</option>
<option value="51-Psychcoeducation">51-Psychcoeducation</option>
<option value="52-Family Support">52-Family Support</option>
<option value="53-Supportive Education">53-Supportive Education</option>
<option value="54-Part W/Law Enforcement">54-Part W/Law Enforcement</option>
<option value="55-Peer and/or Family Delivered">55-Peer and/or Family Delivered</option>
<option value="56-Psychcoeducation">56-Psychcoeducation</option>
<option value="57-Family Support">57-Family Support</option>
<option value="58-Supportive Education">58-Supportive Education</option>
<option value="59-Part W/Law Enforcement">59-Part W/Law Enforcement</option>
<option value="60-Peer and/or Family Delivered">60-Peer and/or Family Delivered</option>
</select>
我的j查询移动网站中有一个选择菜单,当我显示更多选项时,我需要添加滚动条来选择菜单。如果这样做...提前x提前
答案 0 :(得分:0)
基本上,如果你使用原生选择,那么你不用担心它,系统将负责...... 如果你想添加自定义滚动条,那么你需要一个非常好的理由... (当使用自定义的thins时,你将失去很多本机组件的稳定性) 如果经过所有这些你仍然认为你必须有一个自定义选择,我会建议使用bootstrap /语义ui解决方案这些casaes 你应该看看: http://silviomoreto.github.io/bootstrap-select/(用于引导程序) 和: http://semantic-ui.com/