使用定义列表____20160520


说明

该技巧的目的是通过在定义列表呈现来提供词汇或短语的定义。该列表使用dl元素标记。在列表中,每个条目被放在dt元素中,它的定义被放置在后面的dd元素中。title属性可以被用来提供定义列表的附加信息。
使用dl、dt、dd来保证词汇和定义之间的关系被保留,词汇和定义列表被看做一个组合。
当定义列表使用字母排序,定义列表使用最简单。定义列表列表一般用在词汇表中。


样例

样例1:

一个航行网站上有关航行术语的定义列表。


效果

Knot

A knot is a unit of speed equaling 1 nautical mile per hour (1.15 miles per hour or 1.852 kilometers per hour).

Port

Port is the nautical term (used on boats and ships) that refers to the left side of a ship, as perceived by a person facing towards the bow (the front of the vessel).

Starboard

Starboard is the nautical term (used on boats and ships) that refers to the right side of a vessel, as perceived by a person facing towards the bow (the front of the vessel).


无障碍效果

各读屏、各浏览器的支持效果

测试人:

争渡、IE11:
永德、IE11:
NVDA、IE11:
永德、chrome:
NVDA、chrome:
NVDA、Firefox:
voiceover、chrmoe:
voiceover、Safari: