Home  >  Article  >  Web Front-end  >  Introduction to the use of select optgroup tags in HTML_HTML/Xhtml_Web page production

Introduction to the use of select optgroup tags in HTML_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:40:121612browse

Occasionally, I need to group select content. In the past, I used program control. Today I found that there is an optgroup attribute in select that can be used.

It has been tested and suitable for browsers such as Firefox and IE. The only shortcoming found so far is that the title style after the group cannot be customized. For example: If you want to change the font attributes, you cannot use a normal font, but you can change the color and size. The default under IE is italics and bold


Copy the code
The code is as follows:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn