前端开发问题

Which method is better? CSS classes or ID#39;s?(哪种方法更好?CSS类或ID?)
Is there a selector for 2 or more elements with the same attribute value?(是否有 2 个或更多具有相同属性值的元素的选择器?)
Is it possible using current browsers to use pseudo-classes to detect first and last of a certain class?(是否可以使用当前浏览器使用伪类来检测某个类的第一个和最后一个?)
CSS :not pseudo-class not working(CSS:不是伪类不起作用)
CSS pseudo-element to apply the first character of an element(CSS 伪元素应用元素的第一个字符)
How to set the universal CSS selector with JavaScript?(如何使用 JavaScript 设置通用 CSS 选择器?)
CSS nth-child apply odd-even rule but switch every 4 items(CSS nth-child 应用奇偶规则,但每 4 项切换一次)
CSS Selector for Adjacency(邻接的 CSS 选择器)
CSS nth-of-type selector with nested elements(带有嵌套元素的 CSS nth-of-type 选择器)
CSS :hover effect not working when I set an ID to the paragraph(CSS:当我为段落设置 ID 时,悬停效果不起作用)
How can I apply CSS style changes just for one page?(如何仅对一页应用 CSS 样式更改?)
Problem with odd/even child elements in nth-child(nth-child 中奇数/偶数子元素的问题)