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

后端 未结 7 1501
不思量自难忘°
不思量自难忘° 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:

    <div id"dynamically-added-block"> ... </div>
    ...
    $("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.

    0 讨论(0)
提交回复
热议问题