internet-explorer - CSS 背景大小在 IE7/8 中不起作用

标签 internet-explorer css internet-explorer-8 internet-explorer-7

<分区>

出于某种原因,我的背景大小在 IE 7 和 8 中不起作用。谁能告诉我为什么。同样在 IE 检查器中,背景大小属性未显示。

<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;
}

最佳答案

那是因为 background-size 是一个 CSS3 属性 isn't supported IE9 之前。

但是,有一个线程提出了一个可能的解决方法: How do I make background-size work in IE?

关于internet-explorer - CSS 背景大小在 IE7/8 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15766772/

相关文章:

Css 覆盖元素不可见

java - showDocument() 在使用 Java 7/Java 6u27 的 IE8 中不显示新窗口

css - LESS 中的双 & 号

css - 这是设置具有两个色标的 CSS 渐变的正确方法吗?

jquery - IE8 中的 Bootstrap 3 轮播错误

css - 为什么 IE css 修复不能用于 Internet Explorer 8? if语句结束if

javascript - 对象在 IE 8 上出错时不支持此属性或方法

java - 数据表中生成的标记

css - 有没有办法将 CSS 样式设置为仅在 IE 怪癖模式下执行?

html - 自版本 12 起,Opera 中带有 "opacity: 0"的可见选择元素