The :not pseudo-class selector can filter elements that do not match the expression example table tbody tr:not(:first-child):not(:last-child) td { text-align: right; } The above code can select the non-first and non-last tr in the tbody part of the table, and set the text style of its child td element to the right Here we need to pay attention to the grammatical format of not: Single not writing: /*Select non-paragraph elements*/ :not(p) { } How to write multiple not /*Select the middle p element in the div that is neither the first nor the last*/ div p:not(:first-child):not(:last-child){ } The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. |
<<: Design theory: the basics of font design
>>: Summary of MySQL logical backup and recovery testing
Tomcat7.0 sets virtual directory (1) Currently, o...
Today I made a menu button. When you move the mous...
js interesting countdown case, for your reference...
Disclaimer: This password reset method can direct...
Table of contents 1. Routing Configuration 2. Vue...
1. Natural layout <br />The layout without a...
This article example shares the specific code of ...
An optimization solution when a single MYSQL serv...
Possible reasons: The main reason why Seata does ...
Yum (full name Yellow dog Updater, Modified) is a...
Table of contents MySQL Client/Server Protocol If...
Solve the problem of Chinese garbled characters i...
This article describes the example of MySQL sched...
Abstract: HBase comes with many operation and mai...
How to shorten the page rendering time on the bro...