+ 9

jquery background-image[solved]

https://code.sololearn.com/W3sMtZ26Oe2I/#js will not display images on button. Whats wrong?

9th Jun 2019, 5:02 PM
Oma Falk
Oma Falk - avatar
8 ответов
+ 3
Your pattern variable was faulty. Perhaps you forgot to update the link to github content :) Try changing it to: var pattern = "https://raw.githubusercontent.com/thetalent/omapuzzle16/master/image_part_0xy.jpg" https://code.sololearn.com/WFY47PK8KdH2/#html
10th Jun 2019, 5:52 AM
777
777 - avatar
+ 7
rv7 perfect! You also solved my next problem in CSS by selector input instead of selector button.
10th Jun 2019, 7:56 AM
Oma Falk
Oma Falk - avatar
+ 5
thanks to rv7 I could finish my project https://code.sololearn.com/WCBcC89Bd0NJ/?ref=app
10th Jun 2019, 12:57 PM
Oma Falk
Oma Falk - avatar
+ 3
I think nothing is wrong,because you can't add background-image on button!
9th Jun 2019, 5:28 PM
CodeFu
CodeFu - avatar
9th Jun 2019, 6:37 PM
Oma Falk
Oma Falk - avatar
9th Jun 2019, 6:52 PM
Paul Krash
+ 2
Hi Oma, I think that something weird is happening behind the scenes, as we can add background to almost any element x_x https://code.sololearn.com/WAFtt47hTbM4/#html
10th Jun 2019, 5:44 AM
777
777 - avatar
+ 1
Welcome Oma! ;) Nice project. 👏
10th Jun 2019, 1:36 PM
777
777 - avatar