Git Product home page Git Product logo

Comments (12)

jefferyto avatar jefferyto commented on June 18, 2024

Can you post a link?

from background-size-polyfill.

xavio avatar xavio commented on June 18, 2024

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.

jefferyto avatar jefferyto commented on June 18, 2024

@xavio Can you try version 0.2.0 to see if it makes any difference?

from background-size-polyfill.

codeofsumit avatar codeofsumit commented on June 18, 2024

i have the same issue, but the image appears if i resize the browser window.

from background-size-polyfill.

jefferyto avatar jefferyto commented on June 18, 2024

@sumit8 Can you post a link or jsFiddle with your issue?

from background-size-polyfill.

codeofsumit avatar codeofsumit commented on June 18, 2024

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.

timtempel avatar timtempel commented on June 18, 2024

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.

jefferyto avatar jefferyto commented on June 18, 2024

@timtempel does this help? #31 (comment)

from background-size-polyfill.

timtempel avatar timtempel commented on June 18, 2024

Sorry, my bad! I didn't browse through the closed section, it's fixed now. Thank you!

from background-size-polyfill.

timtempel avatar timtempel commented on June 18, 2024

Great work by the way!

from background-size-polyfill.

jefferyto avatar jefferyto commented on June 18, 2024

@timtempel thanks :-) I should probably include that info in the README or somewhere more visible

from background-size-polyfill.

sunxiaoyun21 avatar sunxiaoyun21 commented on June 18, 2024

有人解决这个问题么,我在css中也用了"-ms-behavior: url(css/backgroundsize.min.htc), behavior: url(css/backgroundsize.min.htc ,也执行了,就是页面上是没有任何图片的

from background-size-polyfill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.