简体   繁体   English

在CSS上下文中,“ qualified”的定义/含义是什么? (csslint.net警告)

[英]What is the definition/meaning of 'qualified' in the context of CSS? (csslint.net warning)

What is the meaning of 'qualified'? “合格”的含义是什么? I'm getting this warning from csslint.net: 我从csslint.net收到此警告:

"Disallow qualified headings: Heading (h1) should not be qualified)." “不允许使用合格的标题:标题(h1)不应合格。”

The problem code in question: 有问题的代码:

.Layer2_InfoText1 h1 {
  margin:1.3rem;
}

What does this mean, and why is it considered a problem? 这是什么意思,为什么会认为是问题?

In this context 'qualified' refers to selecting of an element with CSS beyond the top level. 在这种情况下,“合格”是指选择CSS超出顶层的元素。 h1 is qualified, therefore, in this example. 因此,在此示例中,h1是合格的。

Its a style guide according to csslint.net 根据csslint.net的样式指南

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

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