Home  >  Article  >  Web Front-end  >  关于IE里的nextSibling_html/css_WEB-ITnose

关于IE里的nextSibling_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:151238browse

            

系统环境:win8,ie11

问题:nextSibling取得当前节点同一级别的下一个节点,没有成功。

过程描述:当点击 【特色】 时,div2的innerHtml没有变成【特色】
调试时发现e.parentNode.nextSibling不是下一个div而是#text,nodetype等于3.

个人得出的结论:不知道对不对,现在结果是这样。

div1.nextSibling.nextSibling才是div2。

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