css - 10x1 透明背景图像 repeat-x 是什么原因?

标签 css transparent

我很好奇为什么这个页面使用 10x1 图像作为 repeat-x 背景。请参见 .intro-frame 类 div。

http://www.psd2html.com/templates/psd2html/examples/markup/rightbanners/index.htm

<div class="intro-frame">

.intro-frame {
background: url("../images/separator-04.png") repeat-x scroll 0 0 transparent;
border-top: 1px solid #000000;
padding: 1px 0 0;
position: relative;
}

separator-04.png 是 10x1 透明 png 图像。我查过了。我在这里看不出使用这种图像的目的。有人知道吗?

最佳答案

这是因为一个已知的 Internet Explorer 透明度错误。请参阅:IE 8 specific background-image bug

一个非常奇怪的情况是,小于 1x10 的重复/平铺背景图像不会呈现。将背景图像大小设置为 1x10(或更大)会使问题消失。

关于css - 10x1 透明背景图像 repeat-x 是什么原因?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9066525/

相关文章:

CSS:格式化特定样式

uinavigationbar - iOS 11 大标题栏色调颜色无法设置

swift |检测碰撞时忽略 Sprite 的透明部分?

html - 如何在已经居中对齐的元素周围添加元素?

html - 如果我有以下代码,如何使我的背景图像在 CSS 中透明?

android - Android 上的透明 LinearLayout

Cocoa:如何使 IKImageBrowserView 的背景透明?

html - 这个 css 选择器语法是什么意思?

javascript - 光滑的旋转木马图像不会缩放

css - 在特定元素上重置 CSS 样式的最佳实践方法?