3 비디오에 문제가 있습니다. 동일한 라인 (수평)에 넣어야하지만 수직으로 나타납니다. 인라인, 테이블 및 인디케이터를 사용해보십시오. 이? 여기에 내 코드 :내 비디오를 같은 줄에 넣으십시오.
HTML
<p><div class="contenidovid">
<div class="video-wrapper">
<iframe src="http://www.youtube.com/embed/Zhawgd0REhA" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
<div class="video-wrapper">
<iframe src="http://www.youtube.com/embed/Zhawgd0REhA" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
<div class="video-wrapper">
<iframe src="http://www.youtube.com/embed/Zhawgd0REhA" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div></div></p>
CSS
.contenidovid {
width: 100%;
max-width: 300px;
margin: 0 auto;
display:
}
.video-wrapper {
position: relative;
padding-bottom: 74.25%; /* 4:3 ratio */
padding-top: 30px; /* IE6 workaround*/
height: 0;
overflow: hidden;
}
.video-wrapper-narrow {
padding-bottom: 40%;
}
iframe,object,embed,video,.videoWrapper,.video-js {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.video-js, img.vjs-poster {
width: 100% !important;
height: 100% !important; //these need !important because IE wants to set height/width to 100px
max-width: 100%;
}
나는'float'을 사용해 보았습니다. – kgh
'display : inline-block;'을'.video-wrapper'에 추가하십시오. –