Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以告诉我如何将我的 CSS 从类选择器 (.nav) 更改为 id 选择器 (#nav)。帮助和一点解释将非常有帮助。谢谢!
CSS 示例:
ul.nav li ul ul
像这样:
ul#nav li ul ul { /* your styles */ }
#nav li ul ul
ID 选择器独立于类或元素。要查找 id="nav" 的元素,请使用 #nav 选择
I have the following code:
document.getElementById("launcherDiv").innerHTML = "<object id='launcher' classid='CLSID:17E88883-3488-46B8-BE4D-30568888855' codebase='Helper.CAB#version=8