📜  在 safari 中可见焦点 - 任何代码示例

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

代码示例1
/* Hide focus styles if they're not needed, for example, 
when an element receives focus via the mouse. */
:focus:not(:focus-visible) {
  outline: 0;
}

/* Show focus styles on keyboard focus. */
:focus-visible {
  outline: 3px solid blue;
}