我可以只使用Twitter Bootstrap的某些元素吗? [英] Can I use only certain elements of Twitter Bootstrap?

查看:103
本文介绍了我可以只使用Twitter Bootstrap的某些元素吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以只使用bootstrap库的某些元素吗?例如,如果我导入整个库,我的页面会因为我的CSS和Bootstrap的CSS之间的冲突而中断;他们正在覆盖彼此的属性。

如果可能,我想要类似Bootstrap库的按钮和div样式属性。

解决方案

您可以在 Twitter Bootstrap页面的自定义下载。只需选择你需要的任何东西,然后点击下载。



你也可以去项目官方存储库,下载所有较少的文件,并仅编译所需的文件,在 bootstrap.less中注释不需要的文件行档案。


Can I use only some certain elements of bootstrap library? For example, if I import the whole library, my page breaks because of conflicts between my CSS and Bootstrap's CSS; they are overwriting each other's properties.

If possible, I want something like just the button and div styling properties of the Bootstrap library.

解决方案

You can download whatever you need in the customized download of Twitter Bootstrap page. Just select whatever you need and click on download.

Also you can go to the project official repository, download all the less files, and compile only what is necessary for you, commenting the lines of the files that you don't need in the bootstrap.less file.

这篇关于我可以只使用Twitter Bootstrap的某些元素吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆