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 で、次のような特定の子を含む別の div 内の div を選択する方法はありますか:
jQuery を使用して実行できることはわかっていますが、CSS のみを使用して実行する方法を探しています。
これはプレーンな CSS では不可能です
セレクターが親であるルールのみを作成できますが、アンカーは親ではありません.content.clearfix
.content.clearfix
ただし、これはjQueryを使用して実行できます。例を次に示します。
http://jsfiddle.net/Curt/b95TB/