유튜브 깔끔형으로 보기
페이지 정보
본문
<style>
#mediaPlayer { position:relative; padding-bottom:56.25%; height:0px; overflow:hidden; max-width:100%; }
.normalPlayer { position:absolute; top:0px; left:0px; width:100%; height:100%; display:block; }
.cutPlayer { position:absolute; top:-50%; left:0px; width:100%; height:200%; display:block; }
</style>
<div id=mediaPlayer><iframe class=cutPlayer src=https://www.youtube.com/embed/T2ZNOZmdD-E?autoplay=1 frameborder=0 allowfullscreen></iframe></div>
#mediaPlayer { position:relative; padding-bottom:56.25%; height:0px; overflow:hidden; max-width:100%; }
.normalPlayer { position:absolute; top:0px; left:0px; width:100%; height:100%; display:block; }
.cutPlayer { position:absolute; top:-50%; left:0px; width:100%; height:200%; display:block; }
</style>
<div id=mediaPlayer><iframe class=cutPlayer src=https://www.youtube.com/embed/T2ZNOZmdD-E?autoplay=1 frameborder=0 allowfullscreen></iframe></div>
- 이전글유튜브에 컨트롤러 달기 21.06.18