CSS中list-style:fine on the outsidee none none;是什么什么

Screen readers, list items and list-style:none
It’s more or less common practice these days to use real HTML lists when what you’re marking up makes logical sense as a list. If you don’t want it to look like a standard ordered or unordered list, that’s easy to fix with a bit of CSS. The underlying semantics will still be there for people using browsers without CSS support or screen readers.
But will it? The short answer is no, not always.
Browsers that do not support CSS at all (or have it turned off) will display ordered and unordered lists with no problems. But with screen readers the situation seems to be rather hit-or-miss. The content of list items will always be announced, but in several cases the list items themselves will not be announced.
I’ve made a
that has four lists – two ordered (ol) and two unordered (ul) lists. I’ve used CSS to remove the list markers from one list of each type by setting the list-style-type property to none (whether you use list-style:none or list-style-type:none and whether you declare it for ol, ul or li doesn’t matter). Many would expect that screen readers would still announce the list items, especially for ordered lists, regardless of which CSS is applied to them. This is not always the case.
In my testing, Voice Over and Orca both stop announcing list items for numbered lists when list-style:none is applied. NVDA does too, but only when you use it with Firefox. If you use NVDA with IE, the list items are announced as expected.
The scenario is similar for unordered lists, but some screen readers don’t announce list items (i.e. by saying “bullet” or similar) at all, list-style:none or not.
Here’s a summary of the tests I have done:
Screen reader announcement of list item markers
Screen reader
ol, no markers
ul, no markers
NVDA 2011.2 (IE9)
NVDA 2011.2 (FF6)
Whether or not this is actually a problem for screen reader users depends on the situation, of course. In many cases it probably is not a major usability issue, but I can definitely imagine that it’s useful to know which list item is currently being announced (or that you’ve entered a new list item). This is especially true for ordered lists or long lists.
In my opinion this is a case where screen readers take “screen reading” a bit too literally. Or, as may well be the case, browsers applying CSS too liberally before exposing item states and properties to screen readers through their accessibility APIs. I think in most cases screen reader users would benefit if list-style:none was ignored, or at the very least configurable to be ignored.
Whatever the reason, as a developer it surely doesn’t hurt to be aware that list items often are not announced as such by screen readers.
Possibly related posts
Posted on September 14, 2011 in ,
Previous post:
Next post:
Subscribe / follow
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when youlist-style-image-CSS速查手册-网页陶吧
&|&相关内容list-style-image:SEE ALSO------------------------------------------&&list-style&&list-style-position&&list-style-type&&marker-offsetlist-style-image版本:CSS1  兼容性:IE4+ NS6+ 继承性:有&语法:&list-style-image : none | url (url)&参数:&none :  不指定图像url :  使用绝对或相对地址指定背景图像&说明:&设置或检索作为对象的列表项标记的图像。若list-style-image属性为none或指定图像不可用时,属性将发生作用。对应的脚本特性为listStyleImage。请参阅我编写的其他书目。&示例:&ul.out { list-style-position: list-style-image: url("images/ie.gif"); } &&&苏沈小雨制作?保留所有权利&er . All rights reserved . Terms of Use .list-style-type:_百度知道
list-style-type:
list-style-type:这句是什么意思 ,为什么用横杠隔开,
还有一个,这个是什么意思
提问者采纳
style=&list-style-type: lower-alpha &&
&li&kkl&/li&
&li&kkl&/li&
&li&kkl&缉储光肥叱堵癸瑟含鸡/li&
&li&kkl&/li&
&li&kkl&/li&
&/ol& 自己把类别改一下看有什么效果
其他类似问题
style的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁PHP 定义li的CSS为list-style-type none即可去掉前面的点 - 下载频道
- CSDN.NET
&&&&PHP 定义li的CSS为list-style-type none即可去掉前面的点
PHP 定义li的CSS为list-style-type none即可去掉前面的点
PHP 定义li的CSS为list-style-type none即可去掉前面的点
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
您可能还需要
开发技术下载排行}

我要回帖

更多关于 outside前介词用什么 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信