CSS 삼각형/캐럿이 적용된 팝업이 있습니다. 출력은 데이터 기반이기 때문에 Popover의 높이는 동적입니다. 150px 높이로 스크롤해야합니다.CSS 삼각형/캐럿 오버플로 -y 적용시 제거됨
overflow-y: scroll
을 적용하면 캐럿이 사라집니다.
.rad {
background-color: #5c5c5c;
color: #ffffff;
position:absolute;
z-index: 1002;
padding: 5px 0;
box-shadow: 0px 0px 7px 2px rgba(0,0,0,0.5);
border-radius:3px;
max-height: 150px;
//overflow-y: scroll;
}
.rad:after {
display: inline-block;
position: absolute;
top: 20px;
right: -10px;
content:'';
width 0;
height:0;
border-top:10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid #5c5c5c;
}
여기에 문제의 FIDDLE가 있습니다. CSS에서 overflow-y 속성의 주석 처리를 제거하여 문제를 확인하십시오.
원하는 출력 : position: absolute
를 제외하고, 그 자식 요소에 cabability 모든 .rad
스타일의 호텔을 (:after
포함)
정말 때문에 스크롤의, 당신은 내가 실제로하고있는 무슨의 이미지와 질문을 업데이트 한 C-linkNepal @ –
... 원하는 당신을 결과로 우리에게 사진을 표시 할 수 있습니다 작업. – binarygiant