i made a button in my website to change background color from "background" to anthor "background" and this work on chrom and opera but don't work in firefox
I'm a web designer and i made a button with jquery in my website to change background color from "background" to anther "background" and this work on chrome and opera without any error but don't work in Firefox
Svi odgovori (8)
Hi, Please supply URL to site .
i'm still working on it, not finished yet
some information( when i type "background-color" it works but it will be "background: linear-grediant" so it doesn't work )
I would suggest up loading your file to Validator and Jigsaw. Firefox sees code stricter than other browsers : W3C.org (World Wide Web Consortium) in charge of standards and practices and future development of web pages and web browsers make the rules on code. Mozilla Firefox follows these rules. W3C.org Who make the rules for web code. HTML https://validator.w3.org/ CSS https://jigsaw.w3.org/css-validator/ and https://validator.w3.org/i18n-checker/ and http://mobile.css-validator.org/
Please let us know if this solved your issue or if need further assistance.
For quick reference, here is the documentation:
https://developer.mozilla.org/docs/Web/CSS/linear-gradient
If you want to set up a demo of what you're trying to do, you can use this site (no account required):
I suggest avoiding any scripting that isn't necessary to demonstrate the problem. Just HTML and CSS may be best. However, if the problem only occurs when using jQuery, if you click the cdnjs button in the left column, you can find and include jQuery into the demo.
Here's a starter fiddle to, er, fiddle with:
( jscher2000, Pkshadow ) thank you for your help it still working on chrome and opera and don't work on firefox but i find another way to do that . thank you.......
moadel said
( jscher2000, Pkshadow ) thank you for your help it still working on chrome and opera and don't work on firefox but i find another way to do that .
Do you mean you can't see the colorful gradient on the button here when you view it in Firefox:
https://jsfiddle.net/4b56ypcb/3/
It's hard to think of a reason you could see a background color on a button but not a background image on the same button. ??