gpt4 book ai didi

semantic-ui - Bootstrap 的 'sr-only' 的语义 UI 等价物是什么?

转载 作者:行者123 更新时间:2023-12-01 11:23:10 24 4
gpt4 key购买 nike

我在 Semantic-UI 中找不到用于向用户隐藏内容但向屏幕阅读器显示的实用程序类.

Bootstrap 的 sr-only 的 Semantic-ui 等价物是什么?

最佳答案

不确定是否存在于 semantic-ui 中。解决方法是创建一个像这样的类(从 bootstrap 的 scaffolding.less #129 复制):

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}

关于semantic-ui - Bootstrap 的 'sr-only' 的语义 UI 等价物是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39982221/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com