jsTree display flaw in IE8

前端 未结 2 1259
滥情空心
滥情空心 2021-01-21 10:01

I\'ve been working with jsTree and encountered a problem in IE8. All the data is displayed correctly in the tree, but when I attempt to collapse a branch of the tree it does not

相关标签:
2条回答
  • 2021-01-21 10:18

    You are missing the !DOCTYPE declaration. Add the following to the top of your page and that should fix the problem...

    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    

    Read here about !DOCTYPE for IE.

    0 讨论(0)
  • 2021-01-21 10:39

    This is perfect.

    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    0 讨论(0)
提交回复
热议问题