【发布时间】:2016-10-19 15:32:59
【问题描述】:
我正在使用https://github.com/silviomoreto/bootstrap-select 并尝试将选择列表标题居中,但到目前为止还没有做到这一点。 我试过使用 title 的中心标题:
<select class="selectpicker" style="text-align: center;" title="Select one">
和数据标题:
<select class="selectpicker" style="text-align: center;" data-title="Select one">
并使用数据隐藏选项:
<option data-hidden="true" class="text-center" value="">Select one</option>
但是,标题始终在左侧对齐。任何提示什么可能有效?
【问题讨论】:
标签: twitter-bootstrap bootstrap-select