背景大小的IE8问题 [英] background-size IE8 problems

查看:214
本文介绍了背景大小的IE8问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个真正的基本设计作为一个副项目为我的公司,但是无法得到的背景大小做任何有意义的(或找到任何替代,保留了当前的功能)。

I am working on a real basic design as a side-project for my company, however am unable to get the background-size to do anything meaningful (or find any alternative that preserves the functionality it currently has). I have been working on this specific problem for around an hour and half now, any help would be appreciated.

我正在处理的网站可以在 http://code.msap.com/gflyer/flyer1.html

The site I am working on can be found at http://code.msap.com/gflyer/flyer1.html

重要的是要注意,我不能在容器div之前或之后修改任何内容。

its important to note that I cannot modify anything before or after the container div. I also am not able to use javascript, and all CSS must be done in-line.

任何人都可以在正确的方向引导我?

Is anyone able to steer me in the proper direction here?

推荐答案

IE8不支持CSS background-size

IE8 does not support CSS background-size.

您唯一的解决方案是:


  1. ignore it; IE8 users will just have to upgrade.

使用Javascript polyfill模拟 background-size 属性

use a Javascript polyfill to emulate the background-size property in IE8 and earlier.

重写HTML,以使背景图片位于自己的< img>

Rewrite your HTML so that the background image is in its own <img> tag, which is sized appropriately and layered behind the element so that it looks like a background image.

使用Chrome-Frame插件,这使得IE使用Chrome呈现引擎。 (您的用户必须为自己安装插件)

use the Chrome-Frame plugin, which makes IE use the Chrome rendering engine. (your users would have to install the plugin for themselves though)

这篇关于背景大小的IE8问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆