如何将youtube
视频嵌入到table
?
我希望左列和右列有 2 个rows
高,中间列有 2 个单元格,我想要底部单元格中的视频和顶部的文本,但我不知道如何将它移到那里
<div class="cbody">
<table class="ctable">
<tr>
<td rowspan="2" style="width:105px"><img class="cimg1" src="meh.png" alt=" " width="100px" height="500px"></td>
<td><p class="ctxt">
my text here
</p></td>
<td rowspan="2" style="width:105px"><img class="cimg2" src="meh.png" alt=" " width="100px" height="500px"></td>
</tr>
<tr>
<iframe width="420" height="315" src="http://www.youtube.com/embed/xI_6oLPC-S0" frameborder="0" allowfullscreen></iframe>
</tr>
</table>
</div>
和CSS...
.cbody {
width:800px;
margin-left: auto;
margin-right: auto;
border-style:solid;
border-width:3px;
}
.cimg1 {
padding-left:5px;
padding-top:5px;
padding-bottom:5px;
float:left;
}
.cimg2 {
padding-left:5px;
padding-top:5px;
padding-bottom:5px;
float:right;
}
.ctxt {
margin-left:5px;
margin-right:5px;
text-align:center;
}
.ctable {
width:800px;
margin-left:auto;
margin-right: auto;
border-style:solid;
border-width:2px;
}