我使用角度动画进行视图转换。它工作正常,但在从一个视图转换到另一个视图时,水平和垂直滚动都显示在浏览器的左下方。
我也在我的项目中使用bootstrap css。所以主要观点如下:
<div ng-controller="NavigationController">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">PROXY SERVER</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Settings</a></li>
<li><a href="#">Help</a></li>
</ul>
<form class="navbar-form navbar-right">
<input type="text" class="form-control" placeholder="Search...">
</form>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-3 col-md-2 sidebar">
<ul class="nav nav-sidebar">
<li ng-class="iplistActive"><a href="#/ipRanges">IP Address</a></li>
<li ng-class="blacklistActive"><a href="#/blacklist">Black List</a></li>
<li ng-class="typelistActive"><a href="#/typelist">Type List</a></li>
</ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">{{title}}</h1>
<div data-ng-view="" id="ng-view" class="slide-animation"></div>
</div>
</div>
</div>
如何解决此问题以防止显示滚动条?
感谢。