Home > Web Front-end > CSS Tutorial > What does & mean in css

What does & mean in css

王林
Release: 2020-06-02 16:18:25
forward
4692 people have browsed it

What does & mean in css

Let’s first look at a piece of css source code:

ul{
    margin-bottom: 20px;
    & >li {
        margin-bottom: 0;
    }
  }
Copy after login

(Video tutorial recommendation: css video tutorial)

& represents the previous level of nesting.

This is the syntax of sass, which represents the upper-level selector.

The above source code is equivalent to the following code:

ul{margin-bottom: 20px;}
ul > li {margin-bottom: 0;}
Copy after login

Recommended tutorial: css quick start

The above is the detailed content of What does & mean in css. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
css
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template