jscrollpane 不工作,可能是 jquery 冲突?

发布于 2024-11-30 13:48:54 字数 1726 浏览 0 评论 0原文

我想做 .jscrollpane 滚动条,但它们没有显示,并且 firebug 没有发现任何错误。我正在做 cufon 字体替换、一个 beautifulPhoto 灯箱和一个对 ul 进行排序的简单组合过滤器。我研究过 jQuery noConflict 模式,但无法弄清楚这是否是问题,如果是,如何在我的情况下使用它。

以下是我在标头中调用脚本的方式:

<link rel="stylesheet" type="text/css" href="styles.css" />
    <link rel="stylesheet" href="prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
<script src="scripts/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
        <script src="scripts/cufon-yui.js" type="text/javascript"></script>
        <script src="scripts/trajan.font.js" type="text/javascript"></script>
        <script type='text/javascript' src="scripts/jscrollpane-1.2.1.js"></script>
        <script type='text/javascript' src="scripts/mousewheel.js"></script>
        <script type='text/javascript' src="scripts/mwheelintent.js"></script>

然后在结束之前使用 $(document).ready(function(){ 运行 PrettyPhoto、投资组合过滤器和 jscrollpane 脚本PrettyPhoto 和portfolioFilter 工作,但jscrollpane 没有呈现任何更改,但Firebug 也没有检测到任何错误

正在应用jscrollpane 。 class="scroll-pane") 到一个名为 #box 的 div id,具有以下属性:

#box {
width:auto;
height:600px!important;
position:absolute;
margin-top:10px;

我直接从源代码中包含了 jscrollpane CSS,并且选择器类的样式如下:

.scroll-pane {
overflow-y:auto!important;
position:relative;
display:block;
}

问题可以现场观看 http:ricardojattan.com/portfolio.html

I want to do .jscrollpane scrollbars but they are not showing up, and firebug is not picking up any errors. I'm doing cufon font replacement, a prettyPhoto lightbox, and a simple portfolio filter that sorts ul's. I've looked into jQuery noConflict mode but can't figure out if this is the issue, and if it were, how to use it in my case.

Here's how I'm calling in scripts in the header:

<link rel="stylesheet" type="text/css" href="styles.css" />
    <link rel="stylesheet" href="prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
<script src="scripts/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
        <script src="scripts/cufon-yui.js" type="text/javascript"></script>
        <script src="scripts/trajan.font.js" type="text/javascript"></script>
        <script type='text/javascript' src="scripts/jscrollpane-1.2.1.js"></script>
        <script type='text/javascript' src="scripts/mousewheel.js"></script>
        <script type='text/javascript' src="scripts/mwheelintent.js"></script>

And then I use $(document).ready(function(){ to run the prettyPhoto, the portfolio filter, and the jscrollpane scripts before the end of the head. The PrettyPhoto and portfolioFilter work, but the jscrollpane doesn't render any changes, but Firebug doesn't detect any errors either.

The jscrollpane is being applied (using class="scroll-pane") to a div id called #box with these attributes:

#box {
width:auto;
height:600px!important;
position:absolute;
margin-top:10px;

I've included the jscrollpane CSS directly from the source, and have the selector class styled like this:

.scroll-pane {
overflow-y:auto!important;
position:relative;
display:block;
}

The issue can be seen live at http:ricardojattan.com/portfolio.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

述情 2024-12-07 13:48:54

您需要更新到最新版本的 jScrollPane

You need to update to the latest version of jScrollPane.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文