1

当我按下我的 Jquery 面板的滑动按钮时,它会向下滑动,但也会移动它下面的内容。我希望我的 Jquery 滑动面板在它下面的内容上打开。它下面的内容是一个图像滑块。我正在一个图片库网站上工作。这是我的图像滑块和滑动面板的 CSS。我希望有人能解决这个问题。

<!-- Sliding panel CSS--> 
body {
    margin: 0 auto;
}
#panel {
    position: relative;
    height: 510px;
    display: none;
}
.slide {
    z-index: 10;
    position: absolute;
    height: 60px;
    width:1344px;
    border: solid 1px black;
    background: url(images/sliderback.png);
}
.btn-slide {
    z-index: 10;
    position: absolute;
    border: 1px solid black;
    background: url();
    text-align: center;
    width: 50px;
    height: 50px;
    margin: -10px 1270px;
    display: block;
    color: #fff;
    text-decoration: none;
}
<!-- End of sliding panel CSS --> 
<!-- Image Slider CSS --> 
#container{
    position:relative;
}
#prev{
    position: absolute;
    cursor: pointer;
    top:245px;
    left:-20px;
    z-index:10;
    width:80px;
    height:100px;
}
#next{
    position:absolute;
    cursor: pointer;
    top:245px;
    left:1280px;
    z-index:10;
    width:80px;
    height:100px;
}
.slider{
    position: relative;
    height:570px;
    width:1366px;
}
<!--Image Slider CSS -->

<!-- Sliding panel CSS-->
body {
    margin: 0 auto;
}
#panel {
    position: relative;
    height: 510px;
    display: none;
}
.slide {z-index: 10;
    position: absolute;
    height: 60px;
    width:1344px;
    border: solid 1px black;
    background: url(images/sliderback.png);
}
.btn-slide {
    z-index: 10;
    position: absolute;
    border: 1px solid black;
    background: url();
    text-align: center;
    width: 50px;
    height: 50px;
    margin:  -10px 1270px;
    display: block;
    color: #fff;
    text-decoration: none;
}

<!-- End of sliding panel CSS --> 

<!-- Image Slider CSS --> 
#container{
    position:relative;
}
#prev{
    position: absolute;
    cursor: pointer;
    top:245px;
    left:-20px;
    z-index:10;
    width:80px;
    height:100px;
}
#next{
    position:absolute;
    cursor: pointer;
    top:245px;
    left:1280px;
    z-index:10;
    width:80px;
    height:100px;
}
.slider {
    position: relative;
    height:570px;
    width:1366px;
}
<!--Image Slider CSS -->
4

0 回答 0