.sr-only {注意
位置:绝对;
左:-10000px;
宽度:1px;
身高:1px;
顶部:汽车;
溢出:隐藏;
}
display: none;或visibility: hidden;隐藏每个人的内容,包括屏幕阅读器用户width: 0px; height: 0px;从文档流中删除该元素,这意味着屏幕阅读器将忽略它sr-only类,但CSS规则尚未填写。给position一个绝对值, left是-10000px值, width和height都是1px值。 sr-only类的position属性设置为absolute的值。
testString: 'assert($(".sr-only").css("position") == "absolute", "Your code should set the position property of the sr-only class to a value of absolute.");'
- text: 您的代码应将sr-only类的left属性设置为-10000px的值。
testString: 'assert($(".sr-only").css("left") == "-10000px", "Your code should set the left property of the sr-only class to a value of -10000px.");'
- text: 您的代码应将sr-only类的width属性设置为1像素的值。
testString: 'assert(code.match(/width:\s*?1px/gi), "Your code should set the width property of the sr-only class to a value of 1 pixel.");'
- text: 您的代码应将sr-only类的height属性设置为1像素的值。
testString: 'assert(code.match(/height:\s*?1px/gi), "Your code should set the height property of the sr-only class to a value of 1 pixel.");'
```
[Stacked bar chart]
| Stealth & Agility | Combat | Weapons | Total | |
|---|---|---|---|---|
| Week One | 3 | 5 | 2 | 10 |
| Week Two | 4 | 5 | 3 | 12 |
| Week Three | 4 | 6 | 3 | 13 |