CSS:last-childより「last-child以外」の方がブラウザにやさしい
たとえば「リストが最後の時」にスタイルを変化させたい時、以下の書き方がよくあります。 li { margin-bottom: 20px; } li:last-child { margin-bottom: 0; } 「平常 … Continue reading CSS:last-childより「last-child以外」の方がブラウザにやさしい
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed