【问题标题】:External css file not working when using bootstrap使用引导程序时外部 css 文件不起作用
【发布时间】:2016-07-22 09:59:29
【问题描述】:

我在我的网站设计中使用引导程序,但是当我使用名为 mycss.css 的外部 css 文件时,它根本不起作用。 我该怎么办? 文件 mycss.css 和 index.php 都在同一个文件夹中。

My source code

【问题讨论】:

  • 请将您的代码直接粘贴到问题中。
  • 在所有css 文件下方添加您的mycss.css 文件。
  • 不工作。已经检查过了。
  • 究竟是什么不工作? Bootstrap 组件不渲染吗?你的外部参考是正确的,所以这似乎不是问题。
  • 外部css文件mycss.css不工作

标签: css bootstrapping


【解决方案1】:

也许它不是解决您的问题的最佳方法,但您可以尝试将 !important 声明添加到您的 custom.css 中不起作用的类

https://www.smashingmagazine.com/2010/11/the-important-css-declaration-how-and-when-to-use-it/

【讨论】:

    猜你喜欢
    • 2021-10-12
    • 1970-01-01
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 2022-06-11
    • 2017-10-19
    • 1970-01-01
    • 2015-04-15
    相关资源
    最近更新 更多