예제 솔루션. CSS는 명확성을 위해 인라인입니다. 크롬 & 파이어 폭스에서 제목은 좋은 블랙 있지만, 즉 있습니다 :
<asp:DropDownList runat="server" ID="DropDownList1" >
<asp:ListItem style="font-weight:bold; color:black;" disabled="true">Heading 1</asp:ListItem>
<asp:ListItem Text="Item 1" Value="11"></asp:ListItem>
<asp:ListItem Text="Item 2" Value="12"></asp:ListItem>
<asp:ListItem style="font-weight:bold; color:black;" disabled="true">Heading 2</asp:ListItem>
<asp:ListItem Text="Item 1" Value="21"></asp:ListItem>
<asp:ListItem Text="Item 2" Value="22"></asp:ListItem>
<asp:ListItem Text="Item 3" Value="23"></asp:ListItem>
</asp:DropDownList>
그것은 일부 브라우저의 차이가 있지만, 잘 렌더링 비활성화 된 회색으로 렌더링합니다.
모든 항목에서 제목은 선택할 수 없으며 항목과 시각적으로 구별됩니다.