backgroundColor is not working on Chrome (Jquery)

Asked

Viewed 22 times

0

Good morning guys, I’m taking a jquery course and when doing some tests with multiple css statements Chrome runs the part of backgroundColor, but both in firefox and ie work without problem, until I looked for something or other but I found nothing, that’s the line I’m using:

.css({color:'blue', border:'1px solid blue', backgroundColor:'green'})

from now on I thank anyone who can help me.

2 answers

1


  • Thank you, I even imagined trying this way but I did not (my mistake), it worked correctly, thank you.

  • 1

    If the answer helped you resolve your question in any way, consider marking the answer as accepted.

0

Good morning, Test this way:

$(document).ready(function(){
    $("div").css({color:'blue', border:'1px solid blue', background-color:'green'});
});
  • thanks for answering friend, the example is the same as the colleague below.

  • I’m sorry I hadn’t seen that had already responded :/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.