Bootstrap: How to add dropdown.less?

六月ゝ 毕业季﹏ 提交于 2019-11-30 04:54:06

问题


I need to add a calendar into a form. I want to install this project: https://github.com/vitalets/bootstrap-datepicker

But it is said that: Requires bootstrap’s dropdown component (dropdowns.less) for some styles, and bootstrap’s sprites (sprites.less and associated images) for arrows.

How can i add that files to my app?

Thank you very much!


回答1:


You have to download and include the following assets.

CSS

http://getbootstrap.com/2.3.2/assets/css/bootstrap.css

http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css

http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/css/datepicker.css

JS

http://code.jquery.com/jquery.js

http://getbootstrap.com/2.3.2/assets/js/bootstrap.js

http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/js/bootstrap-datepicker.js

Then in html, use like this.

<input data-provide="datepicker">

Demo here

Please note that, I have given bootstrap 2.3 here.



来源:https://stackoverflow.com/questions/19272070/bootstrap-how-to-add-dropdown-less

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!