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.
div > a{ }
将属性应用于<a>子级。但是我怎样才能选择任何类型的元素,而不仅仅是<a>?
<a>
这应该选择所有 DIV 的所有直接子对象。
div > * { }
使用下面的。
div > * { Your css attributes should be here }
希望这可以帮助。
使用以下...
div > * {}