简体   繁体   English

如何创建自己的自定义 css 文件来自定义引导程序?

[英]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.

相关问题 如何为 PHP 自定义我自己的状态消息? [等候接听] - How Do I Customize My Own Status Messages for PHP? [on hold] 我可以使用与现有名称相同的名称创建自己的函数来自定义吗? - Can I create my own function with the same name as an existing to customize it? 如何创建自己的确认对话框? - How do I create my own confirm Dialog? 如何为我自己的可视化加载这个 HTML 文件? - How do I load this HTML file for my own visualization? 如何为我的 JavaScript 创建自己的 vsdoc.js 文件? - How can I create my own vsdoc.js file for my JavaScript? 我如何宣传自己的功能? - How do I promisify my own function? 定制容器:我可以使用“ then”方法创建自己的对象吗? - Custom thenables: Can I create my own objects with a “then” method? 如何允许用户通过我自己的 Google Scripts Web 应用程序编辑我的表格文件? - How do I allow users to edit my Sheets file via my own Google Scripts Web App? 我的引导程序目前正在覆盖我的自定义 CSS - My Bootstrap is currently overriding my custom CSS 在离线使用引导程序(通过 npm)时,我是否必须为 slideToggle animation 创建和使用我自己的 jquery 脚本? - Do I have to create and use my own jquery script for slideToggle animation when using bootstrap offline (via npm)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM