擬似要素 before、after
before
.box-01
.box-01 {
width: 300px;
height: 300px;
background-color: #cccccc;
&::before {
width: 60px;
height: 60px;
display: inline-block;
content: "";
background-color: red;
border-radius: 50%;
}
}
after
.box-02
.box-02 {
width: 300px;
height: 300px;
background-color: #cccccc;
&::before {
width: 60px;
height: 60px;
display: inline-block;
content: "";
background-color: red;
border-radius: 50%;
}
}
Author And Source
この問題について(擬似要素 before、after), 我々は、より多くの情報をここで見つけました https://qiita.com/ko8@github/items/f9fed4ea150c90e0bf88著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .