배경 이미지 (지형)가 반복되지 않습니다. 그것은 "테라 관리 기술"(그림 참조) 위에 멈 춥니 다. 바닥 글 바로 위에있는 요소 인 전체 요소 (아코디언)를 덮고 싶습니다.
HTML
<div class="accordion">
<span class"topography"><img src="/img/bg/topo.svg"/></span>
.....
</div>
CSS
.accordion {
position: relative;
}
.topography {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
pointer-events: none;
background-repeat: repeat;
}
.topography img{
height: 100%;
background-repeat: repeat;
}
그러면 이미지를 img 태그가 아닌 배경 이미지로 사용해야합니다.
<div class="accordion">
<span class"topography"></span>
.....
</div>
CSS
.accordion {
position: relative;
}
.topography {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
pointer-events: none;
background-image: url("/img/bg/topo.svg");
background-repeat: repeat;
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다