CSS :nth-child() Selector
Example
Specify a background color for every element that is the second child of its parent:
p:nth-child(2){
background: red;
}
:nth-child(number){
css declarations;
}
p:nth-child(odd){
background: red;
}
p:nth-child(even){
background: blue;
}
p:nth-child(3n+0){
background: red;
}<
تاریخ: جمعه , 04 فروردین 1402 (14:18)
- گزارش تخلف مطلب