【问题标题】:CSS is and isn't overriddenCSS 是否被覆盖
【发布时间】:2022-12-18 03:51:54
【问题描述】:

我如何从 Firefox 开发控制台的“检查器”选项卡中理解以下内容?

最终的效果就是这个规则是有效的,只有当我取消勾选时它才会变得无效两个都,正常和划线。

【问题讨论】:

  • 请检查您的 html 文件,我认为您有多个这样的链接标签:<link rel='stylesheet' type='text/css' media='screen' href='style.css'> <link rel='stylesheet' type='text/css' media='screen' href='style.css'>
  • @PetePearl 的确如此,谢谢,尽管我想知道这是否有缺点,因为 HTML 是由第三方库编写的。
  • 这可能会稍微影响您的应用程序的性能。 css文件将被下载一次但被浏览器应用两次
  • @PetePearl 随意发布作为答案,我会接受

标签: html css


【解决方案1】:

请检查您的 html 文件,我认为您有多个这样的链接标签:

<link rel='stylesheet' type='text/css' media='screen' href='style.css'> 
<link rel='stylesheet' type='text/css' media='screen' href='style.css'>

这可能会稍微影响您的应用程序的性能。 css文件将被下载一次但被浏览器应用两次

【讨论】:

    猜你喜欢
    • 2019-11-22
    • 2015-10-03
    • 2018-06-27
    • 2016-05-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-03
    • 2018-08-04
    相关资源
    最近更新 更多