Modify ↓
Ticket #6824 (closed bug: invalid)
Path of Background Image wrapped by " cause browsers fail to display a image?
| Reported by: | daveygger | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | ||
| Component: | css | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I used a script to generate a bunch of <li> and insert them into my page using jquery's prepend() function.
Then, I use jquery's CSS() function to set a background-image for them.
$(".myLi").css(...) Unfortunately no bg image was showed.
And I found no matter what I enter, what I saw in Firefox's DOM Source of Selection is: background-image: url("1.jpg");
Thanks for taking time to investigate my problem. Best, Davey
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I found what's going on with my code. And problem solved.
This is not jQuery's bug but Firefox (I guess). Thanks.