본문 바로가기
개인공부

유튜브 모바일 반응형 퍼가기 소스

by 디자인업 2021. 8. 20.

가로 세로 비율이 유지되는

유튜브 모바일 반응형 퍼가기 소스 

 

<div style="position: relative; height:0; padding-bottom: 56.25%;">
<iframe width="560" height="315" src="https://www.youtube.com/embed/kMlS1OutCSs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="position: absolute; width:100%; height:100%;"></iframe></div>
</div>

 

 

 

댓글