修复IE8中的背景图片 [英] Fix the background image in IE8

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

问题描述

在所有浏览器中,我使用以下css规则,并且有效

In all browser I use the following css rules, and it works

// it fits the background image to container
background-size: contain;
background-size: cover;

是否有CSS规则也可以使其在IE8中运行,还是应该使用JavaScript?

Are there css rules to make it work in IE8 also, or should I use javascript?

在使用javascript的情况下,我正在使用jquery.
实现目标的最佳方法是什么?

In case of javascript I am using jquery.
What is the best way to active my goal?

推荐答案

我也遇到了同样的问题,但是通过下面的链接可以解决我的问题

I had also the same problem but by going through this below link my problem solved

http://css-tricks.com/perfect-full-page -background-image/

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

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