[英]How do I create my own custom css file to customize my bootstrap?
我正在尝试创建我自己的自定义 css 文件来自定义我的引导程序,我该怎么做?谢谢
You can override the bootstrap styles by using the !important after your own style.您可以在自己的样式后使用 !important 来覆盖引导样式。 For example:
例如:
.btn {
background-color: #ff0000 !important;
}
Another solution is to copy all the bootstrap CSS code and paste into a .css file and then you can edit it (if you go with this option, you need to import the .css file instead of the bootstrap original CSS file, of course).另一种解决方案是将所有引导 CSS 代码复制并粘贴到 .css 文件中,然后您可以对其进行编辑(如果使用此选项,则需要导入 .css 文件而不是引导原始 CSS 文件,当然) .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.