상대 위치 컨테이너 내 요소를 문서에 절대 배치 할 수 있습니까? 코드에 따라상대 위치 요소 내 페이지 절대 위치 요소
는 :
<div id="container1" style="position: relative">
<div id="container2" style="position: absolute; top: 5px; left: 5px">
I will be positioned inside my parent!!
</div>
<div id="container3" style="position: absolute;">
I would like to be positioned relative to the document. But how?
</div>
</div>
나는 container1
에서 container3
를 이동하는 것은 해결책이 될 수 있지만,이 전 단지 CSS를 통해 템플릿을 통제 할 수 없기 때문에 그것이 불가능 가정하자 것이라는 점을 알고있다.
슬픈 일입니다. 나는 또 다른 대답을 기대하고있었습니다. 그러나 이것을 지적 해 주셔서 감사합니다! – Tim