简体   繁体   English

CSS选择器在inspect元素中重复多次

[英]CSS selectors repeating multiple times in inspect element

Before anybody marks it as duplicate I want to say that I have already checked this "What do repeating css selectors mean when displayed via Google Chrome console log?" 在任何人将其标记为重复之前,我想说的是,我已经检查过“通过Google Chrome控制台日志显示时,重复的CSS选择器意味着什么?” but it didn't help because in my case the CSS is written only once in the CSS file but still it show's up multiple times in the inspect element. 但这无济于事,因为在我的情况下,CSS在CSS文件中只写入了一次,但在inspect元素中却多次显示。

I have checked the site in multiple browsers but it has same issue. 我已经在多个浏览器中检查了该站点,但是存在相同的问题。 Here are screenshots I took from: 这是我从中截取的屏幕截图:

CHROME: 铬:

铬

FIREFOX: FIREFOX: 在此处输入图片说明

Code inside HEAD TAG HEAD TAG内的代码

<head>

<title>ABC INC.</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta name="description" content="Global Changes">

<meta name="viewport" content="width=device-width, initial-scale=1">

<?php set_include_path( get_include_path() . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] ); ?>

<link href="/ABC_INC/gchanges/CSS/123.css" rel="stylesheet"  type="text/css">

</head>

在此处输入图片说明 You have one (or many) <link href=''> tag that refer to 123.css file inside your <body> tag, you have to remove them and keep just one in the <head> tag and it should be good. 您有一个(或多个) <link href=''>标记,该标记引用<body>标记内的123.css文件,您必须删除它们并在<head>标记中仅保留一个,这应该很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM