2013-12-10 20 views
1

當我在select中使用optgroup並且select在updatepanel內時,自從安裝了IE 11以來,我有一個奇怪的問題。optgroup in updatepanel在IE 11中保持高亮

雖然光標位於另一個字段中,但所選值仍會高亮顯示。

<asp:UpdatePanel ID="updpnlContent" runat="server"> 
    <ContentTemplate> 
     <select> 
     <optgroup label="Alkaline Metals"> 
      <option>Lithium (Li)</option> 
      <option>Sodium (Na)</option> 
      <option>Potassium (K)</option> 
     </optgroup> 
     <optgroup label="Halogens"> 
      <option>Fluorine (F)</option> 
      <option>Chlorine (Cl)</option> 
      <option>Bromine (Br)</option> 
     </optgroup> 
     </select> 
    </ContentTemplate> 
</asp:UpdatePanel> 

感謝您的任何答覆,可以幫助我!

+0

嗨 - 你有沒有深入到底? 我有同樣的問題 - 在一個標準的HTA應用程序 - 包含optgroups的選擇下拉菜單保留選項突出顯示項目失去焦點時! – DarrenNavitas

回答

0

我有這個相同的問題,並發現它是由於我在HTML頭中發出一個標籤,它指示IE在IE7兼容模式下呈現。

標題是:

<META content="IE=7.0000" http-equiv="X-UA-Compatible"> 

卸下此固定突出顯示的問題。