首頁(yè)| 新聞| 娛樂(lè)| 游戲| 科普| 文學(xué)| 編程| 系統(tǒng)| 數(shù)據(jù)庫(kù)| 建站| 學(xué)院| 產(chǎn)品| 網(wǎng)管| 維修| 辦公| 熱點(diǎn)
optgroup 用在select 標(biāo)記中 可以使下拉列表內(nèi)容更加有條理sub 上標(biāo) sup 下標(biāo) 可與<em>一起用于注釋dbo dir 標(biāo)記一起使用,可以改變文字的輸出方向,右->左
eg:
演示代碼:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=gb2312" /><title>4個(gè)不常用html標(biāo)簽optgroup、sub、sup和bdo。 - www.survivalescaperooms.com</title><style type="text/css">fieldset{width:300px;padding:5px 5px; margin:30px auto; display:block; line-height:125%; font-size:15px;}legend{margin-left:15px; font-size:18px; color:red; }bdo{color:red;}</style></head><body><fieldset><legend>optgroup</legend><select><optgroup label="html標(biāo)記"><option>table</option><option>tr</option><option>td</option><option>th</option></optgroup><optgroup label="asp內(nèi)置對(duì)象"><option>cookies</option><option>session</option><option>application</option><option>redirect</option></optgroup></select><br /><select><br /><optgroup label=""><br /><option>....</option><br /></optgroup> <br /></select></fieldset><fieldset class="sub"><legend>sub標(biāo)記</legend>x<sub>2</sub> 上標(biāo) x<sub>2</sub><br />x<sup>2</sup> 下標(biāo) x<sup>2</sup><hr />與<em>標(biāo)簽結(jié)合可以用于注釋,例:<br />flying<sub><em>注:html xhtml網(wǎng)頁(yè)編碼 版主</em></sub></fieldset><fieldset><legend>bdo標(biāo)記</legend><bdo dir="ltr">我非常愛(ài)你</bdo><br /><bdo dir="rtl">你愛(ài)常非我</bdo><br />輸出結(jié)果為 <br /><bdo dir="ltr">我非常愛(ài)你</bdo><bdo dir="rtl">你愛(ài)常非我</bdo><br />注:使用bod標(biāo)簽時(shí)必須連用dir標(biāo)簽屬性,ltr指從左到右的編排順序,rtl指從右到左的編排順序。</p></p></fieldset></body></html> [ctrl+a 全部選擇 提示:你可先修改部分代碼,再按運(yùn)行]
練就火眼金睛 十一種常見(jiàn)電腦
打印機(jī)共享提示“操作無(wú)法完成
如何查找有故障的配件
回眸一笑百魅生,六宮粉黛無(wú)顏色
歲月靜美,剪一影煙雨江南
蕪湖有個(gè)“松鼠小鎮(zhèn)”
小滿:小得盈滿,一切剛剛好!
一串串晶瑩剔透的葡萄,像一顆顆寶石掛在藤
正宗老北京脆皮烤鴨
人逢知己千杯少,喝酒搞笑圖集
搞笑試卷,學(xué)生惡搞答題
新聞熱點(diǎn)
疑難解答
圖片精選
一組很不錯(cuò)的網(wǎng)頁(yè)色彩表
RSS 2.0 規(guī)范
HTML表單元素覆蓋樣式元素問(wèn)題及其
用Html為Flash頁(yè)面添加音樂(lè)
網(wǎng)友關(guān)注