列表在IE7 / 8中没有正确显示。图像,边界半径等

时间:2013-01-24 20:33:46

标签: html css list sass css-position

首先,jsfiddle:http://jsfiddle.net/MhFk4/2/

在IE9中一切正常,但IE8&下面我遇到问题..在开发网站上,只有一个按钮显示在IE8中(但是它显示的小提琴,但边框半径不能正常工作?)

以下是实际的开发网站,了解IE8的用途:http://tinyurl.com/bxy449e

.view-home-cta-view {
ul {
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    height: 380px;

    li {
        float:left;
        margin: 0 25px 0 0;
        position:relative;

        .views-field-field-cta-image {
            border: 10px solid #fff;
            @include border-radius(150px);
            width:270px;
            box-shadow:0 0 25px rgba(0, 0, 0, 0.7);

            -moz-background-clip: padding; 
            -webkit-background-clip: padding-box; 
            background-clip: padding-box;

            img {
                max-width:100%;
                height: auto;
                @include border-radius(140px);
            }
        }
        .views-field-field-regular-link {
            font-family: $o;
            font-size:22px;
            width:100%;
            position:absolute;
            bottom:14px; // 60px up from bottom
            left: 0;
            z-index: 3000;
            a {
                color:#fff;
                text-decoration: none;
                background: $green;
                display:block;
                text-align:center;
                line-height:22px;
                padding: 13px 0 15px;
                @include border-radius(5px);
                box-shadow:0 0 10px rgba(0, 0, 0, 0.7);
                @include transition(0.5s);
                &:hover {
                    background: lighten($green,5%);
                }
            }
        }
        .views-field-field-attachment-link {
            font-family: $o;
            font-size:16px;
            width:100%;
            position:absolute;
            bottom:-20px;
            left:0;
            a {
                color:#fff;
                text-decoration: none;
                background: $brown;
                display:block;
                text-align:center;
                @include border-radius(0 0 5px 5px);
                margin: 0 20px;
                padding: 8px 0 10px;
                line-height:16px;
                box-shadow:0 0 7px rgba(0, 0, 0, 0.6);
                @include transition(0.5s);
                &:hover {
                    background: lighten($brown,5%);
                }
            }
        }

        &.views-row-last {
            margin-right: 0;
        }
    }
}}

所有SCSS代码都在JSfiddle中(带有mixins和颜色变量)。如果有人能对此有所启发,我会很感激,谢谢!

1 个答案:

答案 0 :(得分:0)

此处的问题围绕z-index,我设法通过将z-index应用于li元素内的每个容器div来解决此问题,并添加额外的z-indexli本身。