调整窗口大小时Nivo滑块问题

时间:2014-02-12 09:00:33

标签: javascript jquery html css

我在drupal网站上使用nivo滑块,但是当我调整窗口大小时,滑块图像在这里拉伸是我的代码我没有在nivo主题中做任何更改default.css

.nivoSlider {
    height: 100% !important;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.nivoSlider img {
    display: none;
    height: 100% !important;
    left: 0;
    max-width: none;
    position: absolute;
    top: 0;
}
.nivo-main-image {
    display: block !important;
    height: 100% !important;
    position: relative !important;
    width: 100% !important;
}

.nivo-slice {
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 5;
}
.nivo-box {
    display: block;
    overflow: hidden;
    position: absolute;
    z-index: 5;
}
.nivo-box img {
    display: block;
}

0 个答案:

没有答案