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 -

Installing croogo for cakephp -