web前端html實例-optgroup標簽的用法介紹
阿新 • • 發佈:2019-05-07
分享 mage 處的 交流 -o content asp 前端學習 html
此標簽可能使用頻率並不是太高,但是對於組織數據還是大有用處的,一般要和select標簽配合使用,看一段代碼實例一切就都明白了,代碼如下:
<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <meta name="author" content="http://www.softwhy.com/" /> <title>web前端學習扣qun:731771211 每日分享技術,學術交流</title> </head> <body> <div> <select> <optgroup label="前臺專區"> <option value ="1">html專區</option> <option value ="2">div+css專區</option> </optgroup> <optgroup label="程序專區"> <option value ="3">asp專區</option> <option value ="4">php專區</option> </optgroup> </select> </div> </body> </html>
web前端html實例-optgroup標簽的用法介紹