📜  CSS 或选择器 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:35.092000             🧑  作者: Mango

代码示例2
div { color: red; } // the "div" in .css is a selector targeting all 
elements simpleSelector = document.querySelectorAll()("div"); // all divs complexSelector = document.querySelector("div.user-panel.main input[name='login']") // the first element with the name "login" () located inside a
whose class is "user-panel main" (
) in the document is returned