<"> How to change the background color of a div using jQuery? [closed]-PHP Chinese Network Q&A
How to change the background color of a div using jQuery? [closed]
P粉585541766
P粉585541766 2023-09-16 21:25:27
0
1
470

I want to change the background color of a div at runtime using jquery. The div is showing but its background color is not changing. I don't know what's wrong with the code I wrote.

   
Hello, world!

I want decimal rgb value.

P粉585541766
P粉585541766

reply all (1)
P粉854119263

You need to use theMath.floorfunction instead of floor (floor is not defined in the current code, that's why your r g b values are invalid):

    
Hello, world!
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!