枰培教育
您的当前位置:首页HTML非常用标签optgroup、sub、sup和bdo示例代码

HTML非常用标签optgroup、sub、sup和bdo示例代码

来源:枰培教育


optgroup 用在select 标记中 可以使下拉列表内容更加有条理

代码如下:
<select>
<optgroup label="aaa">
<option>分清是非</option>
<option>分清是非</option>
<option>分清是非</option>
</optgroup>
<optgroup style="color:#C30" label="bbb">
<option>分清是非</option>
<option>分清是非</option>
<option>分清<br/>是非</option>
</optgroup>
</select>

sub 上标
sup 下标 可与<em>一起用于注释
dbo dir 标记一起使用,可以改变文字的输出方向,右->左


ffcod = delpost.runcode3 .value; ffcod = ffcod.replace(/
/g,''); delpost.runcode3 .value = ffcod; 提示:您可以先修改部分代码再运行

显示全文