0

我有一个代码

<iframe id="vdoiframe" src="http://keralacarpentry.com/immobiler/media_gallery/BMP2_PSP.mp4" height="500" width="950">
</iframe>

我的问题是我们如何使用css为音频标签设置宽度?在这段代码中,我的视频很小。我想增加它的宽度。是否可以为这个音频标签设置宽度?

4

1 回答 1

0

Rather than link to the video in an iframe can you link using the <video> tag? That way you can control the size, placement, auto-play, controls etc using the HTML5 capabilities

<video height="250" width="320">
    <source="http://keralacarpentry.com/immobiler/media_gallery/BMP2_PSP.mp4" type="video/mp4">
</video>
于 2013-01-30T17:15:11.323 回答