📜  使文本仅对屏幕阅读器可用 - CSS 代码示例

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

代码示例1
.sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap; /* added line */
      border: 0;
}