0

I have some simple CSS which uses the property background-size to force the background to fill the page.

body {
  background-attachment: fixed;
  background: url("/img/bg.jpg");
  background-size: cover;
}

This code breaks on Internet Explorer 8 and lower, due to the lack of support for the property background-size. Using this polyfill code, its possible to add IE8 support to this code. However, the code still breaks on IE7 and lower.

Is there any solution to this?

4

1 回答 1

-1

You can used the AlphaImageLoader Filter to solve this issue.

Also, you can check this post, which is similar to your issue. How do I make background-size work in IE?

于 2018-10-03T00:56:37.533 回答