如何摆脱这个多余的向下滚动条

时间:2016-12-28 10:55:00

标签: html css user-interface webix

Two Scroll Bars

我正在开发一个Reproting工具,由于某种原因,我有两个滚动条,一个用于Chrome或任何其他浏览器,另一个是HTML的一部分,我无法追踪任何内容回到HTML .. HTML Code

> </head>
<body style="min-height:20px">
    <!-- START PAGE CONTAINER -->
    <div class="page-container" style="min-height:20px">

        <!-- START PAGE SIDEBAR -->
        <div class="page-sidebar">
            <!-- START X-NAVIGATION -->
            <ul class="x-navigation">
                <li class="xn-logo">
                    <a href="index.html">Reports</a>
                    <a href="#" class="x-navigation-control"></a>
                </li>
                <li class="xn-profile">
                    <!--<a href="#" class="profile-mini">
                        <img src="assets/images/users/avatar.jpg" alt="John Doe" />
                    </a>-->
                    <div class="profile">
                        <!--<div class="profile-image">
                            <img src="assets/images/users/avatar.jpg" alt="John Doe" />
                        </div>-->
                        <!--<div class="profile-data">
                            <div class="profile-data-name">John Doe</div>
                            <div class="profile-data-title">Web Developer/Designer</div>
                        </div>-->
                        <!--<div class="profile-controls">
                            <a href="pages-profile.html" class="profile-control-left"><span class="fa fa-info"></span></a>
                            <a href="pages-messages.html" class="profile-control-right"><span class="fa fa-envelope"></span></a>
                        </div>-->
                    </div>
                </li>
                <li class="xn-title">Navigation</li>
                <li >
                    <a href="/reports"><span class="fa fa-cogs fa-spin" title="Configure Reports"></span> <span class="xn-text">Configure Reports</span></a>
                </li>
                <li>
                    <a href="/dashboard"><span class="fa fa-cogs fa-spin" title="Configure Dashboard"></span> <span class="xn-text">Configure Dashboard</span></a>
                </li>
                <li class="active">
                    <a href="#"><span class="fa fa-eye" title="View Dashboard"></span> <span class="xn-text">View Dashboard</span></a>
                </li>


            </ul>
            <!-- END X-NAVIGATION -->

任何帮助都将深表感谢

1 个答案:

答案 0 :(得分:1)

你可以做的是

到主div你可以应用css,比如你有

<div class ="main">
   // rest of your code 
</div>

在主你的style.css中你可以放

.main {
    width:100%;
    height:90%;
    overflow:hidden;
}

如果这不起作用,您可以使用

body {
    overflow-y:hidden;
}