Forums
View unanswered posts | View active topics It is currently Mon Dec 22, 2014 12:22 am



Reply to topic  [ 2 posts ] 
 ie7 + ie8 : obtain background-image with jQuery 
Author Message

Joined: Mon Apr 08, 2013 5:01 pm
Posts: 1
Post ie7 + ie8 : obtain background-image with jQuery
Hi,

I use jQuery to obtain the background of a div. It works when I remove CssPie but when CssPie is in, I get url("about:blank").

My code :
var bg = $(element).css('background-image');
alert(bg);

Someone have an idea to resolve this?

Thank you!


Mon Apr 08, 2013 5:07 pm
Profile

Joined: Thu Apr 07, 2011 3:23 am
Posts: 73
Post Re: ie7 + ie8 : obtain background-image with jQuery
It's normal. On IE, PIE removes the background of the element, and simulates css3 on the background.

If you ned to get the background of an element, doit before applying PIE


Tue Apr 09, 2013 3:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.