📜  聚焦样式组件 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:53.929000             🧑  作者: Mango

代码示例1
&:focus {
        outline: none;
        box-shadow: 0px 0px 2px red;
 }

//check for focus with in (on a child)
 &:focus-within {
    border: 2px solid #1FC2FF;
}