jquery - CSS jQuery 滚动面板问题

标签 jquery css

我正在使用 jquery.jscrollpane.js 将滚动条放在 div 上。好像是在下一页的底部放了一个水平滚动条,请问有人能帮忙吗?

http://souk.gumpshen.com/our-story/

最佳答案

这与您在 .flower 上的 css 有关。

.flower {
    background: transparent url("../images/flowers.png") no-repeat 0 0;
    margin-top: -360px;
    left: 696px;
    position: relative;
    width: 100%;
    z-index: 101;
    width: 400px;
    height: 400px;
}

您将宽度设置得太大,以至于溢出页面。您还可以更改高度,因为它仅使用 289px x 367px 的背景图像并删除 width: 100%;

.flower {
    background: transparent url("../images/flowers.png") no-repeat 0 0;
    margin-top: -360px;
    left: 696px;
    position: relative;
    z-index: 101;
    width: 289px;
    height: 367px;
}

关于jquery - CSS jQuery 滚动面板问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6461889/

相关文章:

javascript - jQuery 找到 child 的高度并应用于 parent

javascript - typescript 错误 :Property 'contains' does not exist on type 'Element' . ?

css - Sass 的嵌套伪选择器

c# - 在 .NET 3.5 上实现 Pub/Sub 或 SignalR 功能?

javascript - 无法在 Fancybox 底部添加 20px 的内边距

css - 滚动时保持 div 及其子项固定

反向缩进的 CSS?

css - svg 悬停时奇怪的蓝色下划线

javascript - 当我使用 jQuery 时,如何有效地控制打印网页的哪一部分?

javascript - 如何将功能添加到我的复选框?