Home > front end >  New rookie turned a small problem?
New rookie turned a small problem?

Time:11-29

In the case of without changing the HTML, the following needs can be fulfilled?
Is not under the same parent div multiple class name of the same sub div, through CSS selectors for some div,

CodePudding user response:

CSS can't,
Can be used in jquery. The className: eq (n)

CodePudding user response:

Under different parent div 1. Implementation: no, I wish I could be using the same parent div: NTH - child ()

2. Different parent div, you can use the jquery
$(" XXX ".) each (function () {
$(this)//selector
})

CodePudding user response:

The child you selected div class name and you can choose to

CodePudding user response:

Free web front-end depending on class: http://xinbiancheng.cn

CodePudding user response:

NTH child () - this can be
  • Related