Bootstrap:如何添加dropdown.less? [英] Bootstrap: How to add dropdown.less?
问题描述
我需要将日历添加到表单中. 我要安装此项目: https://github.com/vitalets/bootstrap-datepicker
I need to add a calendar into a form. I want to install this project: https://github.com/vitalets/bootstrap-datepicker
但是据说: 某些样式需要bootstrap的下拉组件(dropdowns.less),箭头需要bootstrap的sprites(sprites.less及其相关图像).
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?
非常感谢您!
推荐答案
您必须下载并包含以下资产.
You have to download and include the following assets.
http://getbootstrap.com/2.3.2/assets/css/bootstrap.css
http://getbootstrap.com/2.3.2/assets/css/bootstrap-sensitive.css
http://eternicode.github.io/bootstrap- datepicker/bootstrap-datepicker/css/datepicker.css
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
然后以html格式使用,
Then in html, use like this.
<input data-provide="datepicker">
在此处演示
请注意,我在此处给出了引导程序2.3.
Demo here
Please note that, I have given bootstrap 2.3 here.
这篇关于Bootstrap:如何添加dropdown.less?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!