为什么单个选择器会多次应用于同一个元素?

时间:2013-11-20 19:24:49

标签: css selector repeat

不完全确定这里发生了什么。起初我以为我多次加载相同的样式表,但事实并非如此。是否有理由将同一个选择器应用于同一个元素5次?

enter image description here

1 个答案:

答案 0 :(得分:0)

事实证明我多次加载相同的样式表。糟糕!

<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css"     />
<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/bootstrap/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/build/client/styles/admin/main.css" type="text/css" />