updatepanel中的optgroup在IE 11中保持突出显示

时间:2013-12-10 11:14:45

标签: asp.net updatepanel internet-explorer-11 optgroup

当我在select中使用optgroup并且select在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>

感谢任何可以帮助我的回复!

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,发现这是因为我在HTML标题中发出了一个标签,指示IE在IE7兼容模式下呈现。

标题是:

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

删除此项修复了突出显示问题。

相关问题