How css uses: nth-child (2) to specify object styling
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!