controlling css with javascript works with Mozilla & Chrome however not with IE

前端 未结 5 1331
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 17:57

Im having problems with this function applying css(using a text variable) working with Internet Explorer but it works in Firefox & Chrome.

the code:



        
5条回答
  •  再見小時候
    2021-01-05 18:34

    @GlassGost: Weird is not working for you because i test it in several browsers (also on the mobile ones). Maybe it helps to add css when the DOM is ready:

    $(document).ready( function()
    {
      .......
    });
    

    Also sometimes it helps to change the order of loading scripts.

    Greetz, Erwin Haantjes

提交回复
热议问题