CSS Selectors don't always need to be written manually , You can easily get the information of any node through the browser CSS Selector code . This section will use Chrome Take the browser as an example to explain how to use Chrome Browser access CSS Selector code .
Jingdong Mall （https://www.jd.com） For example , On the home page of Jingdong Mall , Click... In the right-click menu “ Check ” A menu item , Developer tools will be displayed , stay Elements Tab, navigate to the file you want to get CSS The node of the selector code , For example, get the homepage of Jingdong Mall “ seckill ” Of the link CSS Selectors , You can click the corresponding a node , Then click... From the right-click menu Copy>Copy selector A menu item , Pictured 1 Shown . The node's CSS Copy selector to clipboard .
The results of replication are as follows ：