innerHTML in IE?

前端 未结 3 625
梦毁少年i
梦毁少年i 2021-01-17 04:28

I\'m having trouble using innerHTML with my radio type button.

3条回答
  •  囚心锁ツ
    2021-01-17 04:39

    firstly, pretty sure a DIV directly inside a TABLE is illegal markup.

    don't use illegal markup. browsers will respond differently to it (i've recently had Opera ignore some illegal stuff with IE trying to render it).

    tho IE usually deserves it, firstly get the markup correct and then see how IE does. it may be that it has failed to render the DOM how you expect.

    (FWIW there is an innerHTML rendering problem i've run up against with IE, http://support.microsoft.com/kb/276228/, but for the SELECT element so i don't think it applies here).

提交回复
热议问题