简体   繁体   English

iOS VoiceOver滚动,内部div,3个手指向上/向下滑动

[英]iOS VoiceOver scrolling, inner div, 3 finger swipe up/down

I am doing some VoiceOver experimentation with scrolling (the three-finger swipe up/down gesture). 我正在做一些滚动的VoiceOver实验(三指向上/向下滑动手势)。

My test page is at: 我的测试页面位于:

http://107.170.41.208/AccessibleHTML

There is a div with a scrollbar and lots of content (red background), and after that another div that is not scrollable with a lot of content (yellow background). 有一个带滚动条和大量内容(红色背景)的div,然后是另一个不能滚动的内容很多的内容(黄色背景)。

With the mouse I can scroll through the red background content, but using VoiceOver it skips that section. 使用鼠标我可以滚动浏览红色背景内容,但使用VoiceOver它会跳过该部分。

How can I scroll through the red section content with VoiceOver? 如何使用VoiceOver滚动红色部分内容?

A little late to the party but hopefully it's still useful to people. 派对有点晚,但希望它对人们仍然有用。

Using position: absolute can sometimes cause some issues for screen readers as the DOM layout might not match the visual order. 使用position: absolute有时会导致屏幕阅读器出现一些问题,因为DOM布局可能与视觉顺序不匹配。 The VoiceOver can sometimes take the decision that it wouldn't make sense to read that first (or at all). VoiceOver有时可以决定首先(或根本)读取它是没有意义的。

In that specific case you could just set the required height on the "red" <div> with overflow:scroll and it would be fine and should be readable and scroll-able. 在那种特定的情况下,您可以在“red” <div>上设置所需的高度,使用overflow:scroll ,它会很好,应该是可读和可滚动的。

As a more general rule, try and keep the visual order consistent with the DOM order, using float sparingly to change the layout slightly. 作为更一般的规则,尝试并保持视觉顺序与DOM顺序一致,使用float稍微改变布局。

There obviously are rules somewhere dictating how and why this happens but they are tied up in Apple's code and very changeable between releases. 显然有一些规则决定了这种情况发生的原因和原因,但它们与Apple的代码捆绑在一起,并且在发行版之间变化很大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM