What does & mean in CSS

angryTom
Release: 2020-04-01 17:01:16
forward
17212 people have browsed it

This article introduces the meaning of & in CSS. I hope it will be helpful to friends who are learning CSS! & is the syntax of Sass, indicating the upper level of nesting. There is no & in CSS.

What does & mean in CSS

What does & mean in CSS

Such as source code:

(Recommended study:CSS Tutorial)

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

& Represents the nested upper level

This is the syntax of sass, representing the upper level selector

is interpreted as The CSS code is as follows

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

For more related tutorials, please pay attention toPHP Chinese website!

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:
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!