Comments (12)
Can you post a link?
from background-size-polyfill.
I'm having the same issue, somewhat related to #11
IE8 says that there's a bunch of invalid arguments and wont display the pictures.
from background-size-polyfill.
@xavio Can you try version 0.2.0 to see if it makes any difference?
from background-size-polyfill.
i have the same issue, but the image appears if i resize the browser window.
from background-size-polyfill.
@sumit8 Can you post a link or jsFiddle with your issue?
from background-size-polyfill.
unfortunately i can't give you access to the current project and as we're finalizing it right now, i don't have time to build a jsFiddle just yet (also, how to test jsFiddle-content in IE8? The site does not work there).
But i'll defenitely give more feedback regarding this issue after this project
from background-size-polyfill.
Same problem here but it only occurs when you have the background element in a div which is hidden and displayed later on. I created a Fiddle but I can't open it in IE so here is the simple output (test.html): (it occurs in IE 9 and below)
p.s. backgroundsize.min.htc must be in the same folder as test.html
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script>function test(){$('#test').fadeIn();}</script>
<div style="background-image:url(http://s2.djyimg.com/n3/eet-content/uploads/2013/11/GOLD-TREE-shutterstock-119376553-WEBONLY.jpg);width:300px;height:180px;-webkit-background-size:cover;-moz-background-size:cover;background-size: cover;background-repeat:no-repeat;-ms-behavior: url(backgroundsize.min.htc);behavior: url(backgroundsize.min.htc);"></div>
<div id="test" style="display:none;position:relative;">
<div style="background-image:url(http://www.tea4you.nl/media/catalog/product/cache/2/thumbnail/500x500/9df78eab33525d08d6e5fb8d27136e95/d/i/diverse-fruit_21.jpg);width:300px;height:180px;-webkit-background-size:cover;-moz-background-size:cover;background-size: cover;background-repeat:no-repeat;-ms-behavior: url(backgroundsize.min.htc);behavior: url(backgroundsize.min.htc);"></div>
</div>
<a onmouseover="javascript:test();">Hover here</a>
from background-size-polyfill.
@timtempel does this help? #31 (comment)
from background-size-polyfill.
Sorry, my bad! I didn't browse through the closed section, it's fixed now. Thank you!
from background-size-polyfill.
Great work by the way!
from background-size-polyfill.
@timtempel thanks :-) I should probably include that info in the README or somewhere more visible
from background-size-polyfill.
有人解决这个问题么,我在css中也用了"-ms-behavior: url(css/backgroundsize.min.htc), behavior: url(css/backgroundsize.min.htc ,也执行了,就是页面上是没有任何图片的
from background-size-polyfill.
Related Issues (20)
- Background-size-polyfill doesn't work with pseudo elements :after and :before HOT 3
- Memory intensive due to no delay when waiting for element HOT 4
- JSP sites not working HOT 1
- Breaks entire page/site when used with Microsoft Azure Servers HOT 2
- background-attachment:fixed stop working in IE8
- broken by certain doctypes?
- Is this really work in IE8 just with adding -ms-behavior? HOT 17
- 請問是否可以兼容IE7/IE6 HOT 3
- When is the polyfill executed? How to refresh? HOT 3
- Is doesnt work HOT 3
- Background Polyfill conflict with selectivizr.js
- Will this work in LESS?
- Causes mixed content warnings on secure pages. HOT 1
- IE HOT 2
- IE8 transparent background color
- Sass and frozen links
- Wrong size and position for generated IMG
- Just doesnt work - update until you resize browser HOT 3
- IE8: Does not work with elements with "display:none;" on page load, which are later shown with javascript HOT 2
- Do I need the src folder?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from background-size-polyfill.