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 选择器来定位它,那将是
.Men > * > .Jeans
假设男人和牛仔裤是类