【发布时间】:2013-01-15 16:04:11
【问题描述】:
假设我点击<div class="span10 -configGroup-title" >
在 IE 中,$(this).parent().next().next() 取回 <img alt="arrow" src="../arrow_normal.png" class="-arrow" />
在 Chrome 中,它获取 <div id="seconddiv"/>
<div class="row">
<div class="span10 -configGroup-title" >
<img alt="arrow" src="../arrow_normal.png" class="-arrow" />
<img alt="arrow" src="../arrow_down.png" class="-arrow" style="display: none;" />
<asp:Literal ID="ltGroupAttrName" runat="server" />
</div>
</div>
<asp:ListView ID="lvProperties" runat="server" EnableViewState="true" />
<div id="seconddiv"/>
【问题讨论】:
-
请包含所有相关代码 - 您的示例没有
li或#second元素。 -
这与标记有关,而不是 jQuery。
-
$(this)引用<div class="span10 ...">的上下文是什么? -
什么是
<div id="seconddiv">?它没有显示在您的代码中
标签: jquery html cross-browser