gpt4 book ai didi

jQuery平滑div滚动左侧滚动速度比右侧快很多

转载 作者:行者123 更新时间:2023-12-01 06:01:44 25 4
gpt4 key购买 nike

我正在尝试使用 Smooth Div Scroll (http://www.smoothdivscroll.com/) 在网站上制作一个“全屏”组合。我遇到一个问题,左侧滚动比右侧滚动快得多。我在演示中注意到它们的速度相同,但我不明白为什么它对我的生活不起作用。我已经在下面粘贴了 CSS 和 JS。我还提供了该网站的链接。如果有人对我如何解决这个问题有想法,我将非常感激!

CSS:

div#full-screen-portfolio {
width: 100%;
height: 100%;
overflow-y: hidden;
}

div.scrollWrapper
{
position: relative;
overflow: hidden;
width: 100%;
height: 100%;
}

div.scrollableArea
{
position: relative;
width: auto;
height: 100%;
}

div.scrollingHotSpotLeftVisible
{
width: 130px;
height: 200px;
top: 50%;
margin-top: -100px;
left: 20px;
position: absolute;
z-index: 1000;
background: url(images/full-screen-arrow-left.png) transparent no-repeat center center;
zoom: 1; /* Trigger "hasLayout" in Internet Explorer 6 or older versions */
}

div.scrollingHotSpotRightVisible
{
width: 130px;
height: 200px;
top: 50%;
margin-top: -100px;
right: 20px;
position: absolute;
z-index: 1000;
background: url(images/full-screen-arrow-right.png) transparent no-repeat center center;
zoom: 1;
}

body.full-screen-portfolio div#back-button {
position: absolute;
z-index: 1000;
top: 30px;
left: 30px;
}
body.full-screen-portfolio div#contact-us-area {
position: absolute;
bottom: 50px;
left: 0;
z-index: 1000;
}
body.full-screen-portfolio div#contact-us-area ul {
list-style: none;
margin: 0;
padding: 0;
}
body.full-screen-portfolio div#contact-us-area ul li {
float: left;
height: 91px;
}

JS:

$("#full-screen-portfolio").smoothDivScroll({
visibleHotSpotBackgrounds: "always",
hotSpotScrollingStep: 100
});

网站:

http://lightboxwebsitedesign.co.uk/newsite/full-screen-portfolio/

最佳答案

尝试将其添加到您的 CSS 文件中:

div.scrollingHotSpotLeft
{
width: 10%;
}

关于jQuery平滑div滚动左侧滚动速度比右侧快很多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10835172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com