내 HTML GUI에서는 3 섹션입니다 .---
div
는 scrollable
--- & ---의 ID는 div
입니다 Images
)div
인 scrollableMenu
의 --- & --- ID div
입니다 menu
)중앙 지역 (class of div
is scrollableCenter
--- & --- ID of div
is center)
현재 저는 DIV scrollableMenu를 따라 수직으로 아래쪽으로 실행되는 웹킷 스크롤바 만 있습니다.
내 요구 사항에 따라 즉, div scrollableMenu에 대해 수직으로 아래쪽으로 실행되는 웹킷 스크롤바 만 필요합니다.
내가 직면 한 문제 는 3 & 4의 경우 웹킷 스크롤바가 보이지 않는 것입니다.
입력 유형 이미지의 수가 적더라도 수직으로 아래로 실행되는 내 webkit-scrollbar-track이 계속 표시 될 수 있습니까?
적어도 내 webkit-scrollbar-track을 표시하려면 어떤 속성을 추가해야 합니까?
=========================================================
Button-1 Button-2 Button-3 Button-4 Button-5
=========================================================
||
||
||
DIV ||
scrollableMenu ||
||
||
||
||
||
=========================================================
div.scrollable {
margin: 0;
padding: 0;
overflow: auto;
padding-left: 4px;
padding-top: 20px;
box-sizing:border-box;
}
div.scrollableMenu {
margin: 0;
padding: 0;
overflow: auto;
padding-left: 4px;
padding-top: 20px;
box-sizing:border-box;
}
div.scrollableCenter {
margin: 0;
padding: 0;
overflow: auto;
padding-left: 4px;
padding-top: 20px;
box-sizing:border-box;
}
#images {
background-color:#888686;
white-space:nowrap;
}
#Menu {
background-color:#292B3B;
position:absolute;
top:115px;
bottom:20px;
left:0;
width:250px;
}
#center {
background-color:#292B3B;
position:absolute;
top:115px;
left:250px;
right:0px;
bottom:20px;
}
::-webkit-scrollbar-track {
background-color: #DDDFED;
border-radius: 20px;
}
::-webkit-scrollbar {
background-color: #DDDFED;
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
background-color: #CCC9DA;
}
세로 (y) 스크롤바 만 표시하고 싶을 것 같습니다.
수평 (x)이 아닙니다.
스크롤바의 위치 (x 또는 y)를 정의하기 만하면됩니다.
div.scrollableMenu {
margin: 0;
padding: 0;
overflow-y: scroll; /*(-y) here defines the direction of the scrollbar*/
padding-left: 4px;
padding-top: 20px;
box-sizing:border-box;
}
어떤 이유로 하단 스크롤바가 여전히 나타나면를 사용하십시오 overflow-x: hidden
.
편집 :
빠른 메모 :
(y) = 수직
(x) = 수평
overflow
속성 에 대해 자세히 알아보기이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다