CSS doesn't apply to dynamically created elements in IE 7?

后端 未结 7 1494
不思量自难忘°
不思量自难忘° 2021-02-13 10:32

Still looking for an answer.

Changing or reassigning to the filter\'s innerHTML successfully redraws the element, but breaks my script, so that\'s out.

7条回答
  •  清歌不尽
    2021-02-13 11:36

    Building off of other comments and answers in this thread, I resolved this problem using the Prototype library:

    ...
    ... $("dynamically-added-block").up().show();

    Simply, get the parent and re-show it. Tested in IE8, using both Browser Mode: IE8, Document Mode: IE8 and Browser Mode: IE7, Document Mode: IE7. Have not tested with the dreaded quirks mode.

提交回复
热议问题