Hello, I have used the css background-size: cover, where it works well on Firefox and IE9, however, on IE8 it is not using this css at all, anyone can help me find a way to make it compatible on IE8 (and previous versions if possible) as well?
Ritesh_4 71 Posting Pro
Recommended Answers
Jump to PostHere you can try this function :
function setImage(targetElement, imageURL) { if (typeof(targetElement)=="string") { targetElement = document.getElementById(targetElement); targetElement.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + imageURL + "',sizingMethod='scale')"; } }
setImage( [arg1], [arg2] );
arg1 - a) image container element or b)its "id"; //format: a) object, or b) "string …
All 4 Replies
mrvijayakumar 0 UI / WordPress Developer
Ritesh_4 71 Posting Pro
Troy III 272 Posting Pro
Ritesh_4 71 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.