简体   繁体   English

如何造型 <select>和<option>与CSS?它必须能够与角

[英]How to style <select> and <option> with css ? It must be able to bind with angular

HTML HTML

Here is my code which i tried so far: 这是到目前为止我尝试过的代码:

 <a href="https://silviomoreto.github.io/bootstrap-select/">bootstrap-select</a>, css works but i couldn't see any option value  in it
</p>
<select class=" tab-add-button tab-button bold pull-right" ng-model="teachingPlan.type" ng-options="type for type in ['Case Study','Project','Assignment','Quiz/Exam']" ng-change="assignmentTypeChange(teachingPlan)" >

<option value="" disabled > + Create Assessment</option>
</select>

Please help me regarding this 请帮助我

Use bootstrap select picker.. 使用引导程序选择器。

<script src="/js/Bootstrap/Select/bootstrap-select.js"></script>

<script type="text/javascript">
    $('.selectpicker').selectpicker({
    });
</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM