문제

I would like to provide a bit of assistance to blind users by having my website read something to them, briefly. Is this possible?

도움이 되었습니까?

해결책

One way you can provide content that will be read to users using a screen reader (but not shown to sighted users) is by positioning the content using CSS such that it is offscreen.

E.g. Something like:

In CSS:

.screen-reader { 
  position: absolute; 
  left: -10000px; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

In your HTML:

<p>This text will be read to the screen reader and shown on screen.</p>
<p class="screen-reader">This text will be read to a screen reader but won't show up on screen.</p>

See Techniques for hiding text (at WebAIM) for more info.

다른 팁

This is a web-technology in progress. One I know of is Google Text-To-Speech, but it requires Html 5 to play without clicking/download. Ref: http://weston.ruter.net/projects/google-tts/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top