Я хочу изменить стиль полосы прокрутки в моем ng2-pdf-viewer... После проверки элемента элемент с полосой прокрутки имеет класс .ng2-pdf-viewer-container
Вот мой код... CSS не влияет на полосу прокрутки.
Что мне не хватает?
::ng-deep .ng2-pdf-viewer-container {
-webkit-overflow-scrolling: touch;
}
::ng-deep .ng2-pdf-viewer-container ::-webkit-scrollbar {
width: 12px;
}
::ng-deep .ng2-pdf-viewer-container ::-webkit-scrollbar-track {
background-color: #0dbdaf;
}
::ng-deep .ng2-pdf-viewer-container ::-webkit-scrollbar-thumb {
background-color: #932222;
border-radius: 6px;
} <div class = "contractWrap">
<pdf-viewer
src = "{{selectedApproval.contractLink}}"
[original-size] = "false"
[pageFit] = "true"
[zoom] = "0.95"
class = "pdfer"
[autoresize] = "false"
></pdf-viewer>
</div>





Вот как отредактировать полосу прокрутки...
.ng2-pdf-viewer-container::-webkit-scrollbar {
width: 10px; /* Set the width of the scrollbar */
}
.ng2-pdf-viewer-container::-webkit-scrollbar-track {
background-color: #f1f1f1; /* Set the background color of the track */
}
.ng2-pdf-viewer-container::-webkit-scrollbar-thumb {
background-color: #132FBD; /* Set the background color of the thumb */
border-radius: 5px; /* Set the border radius of the thumb */
}
.ng2-pdf-viewer-container::-webkit-scrollbar-track,
.ng2-pdf-viewer-container::-webkit-scrollbar-thumb {
/* Set the width of the track */
border: 3px solid transparent; /* Use a transparent border to simulate the track width */
background-clip: content-box; /* Ensure the background color only covers the content box */
}