css Get all elements starting from the nth one

css Get all elements starting from the nth one

The specific code is as follows:

<div id="box">
    <div></div>
    <div>Wait for acquisition</div>
    <div>Wait for acquisition</div>
    <div>Wait for acquisition</div>
</div>

Now we need to get all the divs in the box except the first one:

#box div:nth-of-type(n+2) {
    ...
}

The number after n is the number from which to start obtaining.

In this example, we start from the second div, so it is n+2.

Summarize

The above is the CSS that I introduced to you. Get all the elements starting from the nth one. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

<<:  Detailed example of concatenating multiple fields in mysql

>>:  Detailed explanation of Nginx's rewrite module

Recommend

Nginx defines domain name access method

I'm building Nginx recently, but I can't ...

Practical MySQL + PostgreSQL batch insert update insertOrUpdate

Table of contents 1. Baidu Encyclopedia 1. MySQL ...

Vue imports Echarts to realize line scatter chart

This article shares the specific code of Vue impo...

HTML table tag tutorial (34): row span attribute ROWSPAN

In a complex table structure, some cells span mul...

Specific use of Linux dirname command

01. Command Overview dirname - strip non-director...

Detailed explanation of the use of Vue's new built-in components

Table of contents 1. Teleport 1.1 Introduction to...

Mysql Sql statement comments

You can add comments to MySQL SQL statements. Her...

HTML Basics Must-Read - Comprehensive Understanding of CSS Style Sheets

CSS (Cascading Style Sheet) is used to beautify H...

JavaScript implements the detailed process of stack structure

Table of contents 1. Understanding the stack stru...

Detailed steps for installing and configuring MySQL 8.0 on CentOS 7.4 64-bit

Step 1: Get the MySQL YUM source Go to the MySQL ...

Installation of mysql-community-server. 5.7.18-1.el6 under centos 6.5

Use the following command to check whether MySQL ...

An example of using Dapr to simplify microservices from scratch

Table of contents Preface 1. Install Docker 2. In...