:beforeや:afterなどの擬似要素を使うことは多くあると思いますが、リセットや打ち消し方法について改めてメモです。
擬似クラスの打ち消し方法
リセットや打ち消しはいたって簡単、「content: none」を指定するだけです。
.class:before {
content: none;
}
.class:after {
content: none;
}
:beforeや:afterなどの擬似要素を使うことは多くあると思いますが、リセットや打ち消し方法について改めてメモです。
リセットや打ち消しはいたって簡単、「content: none」を指定するだけです。
.class:before {
content: none;
}
.class:after {
content: none;
}