CSS背景大小不工作在IE7 / 8 [英] CSS background-size not working in IE7/8

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

问题描述

由于某些原因,我的背景大小不工作在IE 7和8。谁能告诉我为什么。此外,在IE检查器中,background-size属性不会显示。

For some reason my background size is not working in IE 7&8. Can anyone tell me why. Also in the IE inspector, the background-size property is not showing up.

<a href="" class="twitter-custom-follow-button"></a>

.twitter-custom-follow-button {
  float: left;
  width: 96px;
  height: 20px;
  background: url(../img/slices/btns/twitter_follow.png);
  background-size: 96px 20px;
  background-repeat: no-repeat;
}


推荐答案

c> background-size 是一个CSS3属性,在IE9之前不受支持

That's because background-size is a CSS3 property which isn't supported before IE9.

这篇关于CSS背景大小不工作在IE7 / 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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