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.
//td[@class='Bu']/following::td[@class='Bu']
また
//td[@class='Bu'][2]
どちらも XPath を使用すると同じ結果になるので、どうすればそれらを CSS に変更/変換できますか?
td.Bu2 番目が次の兄弟 (同じ親を共有することを意味する) である場合、またはそれらの親が兄弟であり、それらが 2 つしかない場合にのみ、CSS セレクターでこれを行うことができます。
td.Bu
td.Bu ~ td.Bu
それらがまったく無関係である場合、CSS では不可能です。