Get the App
SLTechnology News&Howtos  ›  Development  › 

How css uses: nth-child (2) to specify object styling

Shulou Source: shulou.com Published: 2022-06-01 05:32:04 12月04日 Update

Editor to share with you how to use css: nth-child (2) specify the setting object style, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

: nth-child (2) specifies to set the object style ul,li {list-style:none; margin:0; padding:0} ul li:nth-child (2n-1) {background:#000; color:#FFF} ul li:nth-child (2n) {background:#FFF Color:#F00} first row odd row CSS5 example second row even row third row odd row fourth row odd row fifth row odd row sixth row is all the content of the article "how to use css: nth-child (2) specify object style". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Objects styles even odd articles content not much most examples more knowledge industry information information channels channels references learning help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL Linux Microsoft vpn