0

我不明白为什么我的垂直滚动条不显示,直到我将容器的大小调整为小于其高度减去 horz 滚动条高度....

我做错了什么还是这是一个错误?

谢谢

我现在希望看到一个垂直滚动条!

现在介绍垂直滚动......!

使用此代码:

<script>

        $(document).ready(function () {

            var settings = {
                showArrows: false
            };

            $('.myContainer').jScrollPane(settings);

            var api = $('.myContainer').data('jsp');

            var throttleTimeout;
            $(window).bind(
                'resize',
                function () {
                    if ($.browser.msie) {
                        // IE fires multiple resize events while you are dragging the browser window which
                        // causes it to crash if you try to update the scrollpane on every one. So we need
                        // to throttle it to fire a maximum of once every 50 milliseconds...
                        if (!throttleTimeout) {
                            throttleTimeout = setTimeout(
                                function () {
                                    api.reinitialise();
                                    throttleTimeout = null;
                                },
                                50
                            );
                        }
                    } else {
                        api.reinitialise();
                    }
                }
            );

        });

    </script>
4

0 回答 0