【问题标题】:CSS opaque background IE6 - IE8CSS 不透明背景 IE6 - IE8
【发布时间】:2023-03-31 06:46:01
【问题描述】:

我使用的是 RGBA 背景,但它在 IE6 中不起作用。我找到了一种在线排序的方法。

table{
    width: 100%;
    border-radius: 20px;
    border: 2px solid black;
    padding: 10px;
    text-align: center;
    background: #87C4CF;
    background: rgba(135, 196, 207, 0.7);
    background:rgb(135,196,207);
    background: transparent\9;
    background:rgba(135,196,207,0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#b287C4CF,endColorstr=#b287C4CF);
    zoom: 1;
}
table:nth-child(n) {
    filter: none;
}

这在 IE6 中有效,但现在表格在 IE 8 中不显示。在所有其他浏览器中都可以正常工作。

【问题讨论】:

    标签: html css internet-explorer-8 background internet-explorer-6


    【解决方案1】:

    半透明背景真的会影响你的布局吗?

    1. 对于 IE8,在 PhotoShop 中使用您想要的颜色和透明度制作一个半透明的 10px x 10px PNG 并设置它 作为背景图像,重复。

    2. 为 IE6 提供纯色背景 颜色

    3. 其他一切都将支持您的 rgba() 后台语法。

    【讨论】:

      【解决方案2】:

      您可以使用CSS3 PIE 来改善您的生活与 ie

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-08-02
        • 1970-01-01
        • 2012-12-05
        • 1970-01-01
        • 2011-11-26
        • 2013-09-02
        相关资源
        最近更新 更多