📜  屏幕阅读器文本 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:54.302000             🧑  作者: Mango

代码示例1
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}