javascript - Scrollbar touch target
问题描述
I am developing the modal in HTML, but the keyboard-only user cannot access all content within the modal.
The only note is scrollbar touch target should be 44px*44px.
I read this doc https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width.
But I don't know how to make scrollbar touch target 44px.
Please let me know how can make the scrollbar touch target should be 44px.
解决方案
大多数浏览器不支持滚动条宽度(请参阅https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-width#browser_compatibility)。
如果要更改行为或布局,则必须使用 css 和 javascript 实现自己的。你可以检查这个https://github.com/mdbootstrap/perfect-scrollbar它模拟 MacOS 的行为和布局。
推荐阅读
- ios - 使用未解析的标识符“GraphRequestHTTPMethod”
- django - DjangoModelFactory 中的日期时间字段破坏了集成测试 (2.1)
- c# - 为什么在性能分析器中禁用内存使用部分?
- reactjs - 自定义样式到使用 react-json 模式表单创建的表单
- ios - WKInterfaceController 的 becomeCurrentPage 没有按预期工作
- vb.net - 将ip地址从静态更改为动态
- java - 根据实时纬度和语言 Firebase 更改标记位置,不带 (Mmap.clear) 或 if (marker != null)
- sql - 比较两列时,有没有办法将 Case 函数与 nvarchar 数据类型一起使用?
- google-app-maker - 使用变量计算减法的表达式的语法
- cordova - 如何减少 ionic 4 应用程序加载时间?