如何向 jquery 移动 select 菜单添加滚动条
how to add a scrollbar to jquery mobile select menu
<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 查询移动站点中有一个 select 菜单,我需要在 select 菜单显示更多 options.how 时添加滚动条来执行此操作..比x提前
基本上,如果您使用的是原生 select,那么您就不必担心,系统会处理好...
如果你想添加自定义滚动条,那么你需要一个很好的理由......
(当使用自定义 thins 时,你会失去很多原生组件的稳定性)
如果在所有这些之后你仍然认为你必须有一个自定义 select,我建议对这些案例使用 bootstrap/semantic ui 解决方案
你应该看看:
http://silviomoreto.github.io/bootstrap-select/(对于 bootstrap)
和:
http://semantic-ui.com/
<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 查询移动站点中有一个 select 菜单,我需要在 select 菜单显示更多 options.how 时添加滚动条来执行此操作..比x提前
基本上,如果您使用的是原生 select,那么您就不必担心,系统会处理好... 如果你想添加自定义滚动条,那么你需要一个很好的理由...... (当使用自定义 thins 时,你会失去很多原生组件的稳定性) 如果在所有这些之后你仍然认为你必须有一个自定义 select,我建议对这些案例使用 bootstrap/semantic ui 解决方案 你应该看看: http://silviomoreto.github.io/bootstrap-select/(对于 bootstrap) 和: http://semantic-ui.com/