CSS里:focus-within 的作用和用法

outline-offset属性设置轮廓框架在 border 边缘外的偏移.

Outlines在两个方面不同于边框:

  • Outlines 不占用空间
  • Outlines 可能非矩形

CSS里:focus-within 的作用和用法

outline-offset越大,越容易向外偏移:

CSS里:focus-within 的作用和用法

outline-offset越小,越容易向内偏移:

CSS里:focus-within 的作用和用法

更多Jerry的原创文章,尽在:“汪子熙”:
CSS里:focus-within 的作用和用法

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2021-11-07
  • 2022-12-23
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2021-06-14
  • 2021-08-21
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案