What does "@mobile" or "@desktop" prefix to class mean in the corresponding css ?
Example :
@media screen and (min-width:1260px) {
.container\@desktop: after {
content: "";
display: table;
clear: both
}
}
As the @
is a special character for CSS ( @media
, @import
...) if you want to use it in a selector, with an element like:
<div class="gr-6@tablet gr-6@desktop"> ... </div>
You have to escape the @
with a backslash \\
, so it is interpreted as a regular character:
.gr-6\@desktop { ... }
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.