6.5.3 option元素 |
|---|
| WAP技术站:www.wapease.com
|
> 内容(content) </optgroup>
它所包含的内容(content)中需要包含至少一次option元素或其他的optgroup元素。 optgroup元素只有一个属性,即title属性,用于定义optgroup元素的标题,以方便用户选择和操作。 我们来看一个使用optgroup元素进行选项分组的例子。程序如下:
<wml> <card id="card1" title="Country"> <p> Select a country: <select name="country" multiple="true" tabindex="2"> <optgroup title="Scandinavia"> <option value="den">Denmark</option> <option value="fin">Finland</option> |
| 上一篇:6.5.2 select元素 下一篇:锚、图像、定时器及其元素 |
