Jquery Mobile: Change page background color

Asked

Viewed 146 times

3

How can I override the stylization of this file css to change the background color of the page? I’ve tried using the !important in the background of body and yet it’s no use.

I know it is this file that is doing this, because if I remove it, everything works normally.

File link: http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css

PS: Stopping using this file is not an option.

  • Can make a [mcve] demonstrating this behavior?

  • Try brute force, include right in tag <body style="background: #000;">

  • Also doesn’t work.

  • Try this answer on the Soen: https://stackoverflow.com/a/24470510/1377664

  • It worked! Thank you very much!

  • Good! Put yourself an answer to help other people.

Show 1 more comment

1 answer

2

The following code replaces stylization:

.ui-page {
    background: red;
}

Browser other questions tagged

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