简体   繁体   English

我无法左右看到滚动条,直到我一直向下滚动到内容的底部

[英]I can't see scroll bar to left and right until I scroll all the way down to the bottom of the content

I'm trying to add scroll controls to my pdf viewer. 我正在尝试向我的pdf查看器添加滚动控件。 Scroll up and down works fine but I can't see the bar for scrolling left and right until I scroll to the bottom of the pdf file. 向上和向下滚动工作正常但我看不到向左和向右滚动的栏,直到我滚动到pdf文件的底部。 In my css I have: 在我的CSS中我有:

.pdf-content {
    overflow-y: auto;
    border: 1px solid #EEE;
    padding: 0px;
    margin: 0px;
}

In my html, I have: 在我的HTML中,我有:

<div class="pdf-content" [style.width]="imageWidth" [style.height]="imageHeight">
    <pdf-viewer *ngIf="fileUrl" style="display: block;" 
        [src]="fileUrl" 
        [show-all]="false" 
        [original-size]="false" 
        [rotation]="rotation"
        [page]="page"
        [zoom]="zooming"
        (after-load-complete)="callBackFn($event)">
    </pdf-viewer>

    <md-spinner *ngIf="loadingPdf && fileUrl" class="center"></md-spinner>
</div>

当我在pdf的中间时,我看不到底部的滚动条

如果我一直向下滚动,我可以看到底部的滚动条

Your scroll bars are on two different elements. 滚动条位于两个不同的元素上。 Try changing overflow-y: auto to just overflow: auto so that the scroll bars are on the same element. 尝试将overflow-y: auto更改为overflow: auto以便滚动条位于同一元素上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以向下滚动,但没有内容 - I can scroll down, but there is no content 滚动条没有一直滚动到我的表格底部 - Scroll bar doesn't scroll all the way to the bottom of my table 当我上下滚动HTML页面右侧内容时,如何自动选择左侧链接? - how to select automatically left side link, when I scroll the html page up and down of right side content? 在使用CSS和JS向下滚动时,如何从左向右移动(动画)元素? - How can I move (animate) an element from left to right while I scroll down with CSS and JS? 我想在底部滚动条 - I want to scroll bar in bottom 我如何使多个div向上,向下,向右和向左滚动 - How can i make multiple divs to scroll up,down,right and left 如何将内容对齐到div的所有四个角(右上,左上,右下,左下),并在每个角上都有边距? - How can i align content to all four corners of a div (top right, top left, bottom right, bottom left) and have margin on each? 如何隐藏水平栏,并使左右按钮水平滚动? - How can I make the horizontal bar hidden and make left and right buttons to scroll horizontally? 我似乎无法禁用滚动条 - I can't seem to disable the scroll bar 当我向下滚动页面时,如何让我的导航栏向下滚动 - How can I get my nav bar to scroll down, when I scroll down the page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM