html - How to select multiple child elements with css ":nth-child()" -


  div div p: nth-child (1 से 5)   

मैं nth-child के साथ कई संख्याओं का चयन कैसे कर सकता हूं, इसलिए मुझे बाल तत्व 1 से 5 लिखने के बिना मिलता है:

  div div p: nth-child (1), div div p : nth-child (2), div div p: nth-child (3), div div p: nth-child (4), div div p: nth-child (5) {}   

तो यह इस तरह दिखना चाहिए:

  div div p: nth-child (1 to 5)    

  div div p: nth-child (-n + 5) {}   

यह पहले 5 का चयन करेगा बच्चों।

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -