HTML5 规定了一种通过 video 元素来包含视频的标准方法。

插入视频

<video width="320" height="240" controls="controls">
  <source src="media/paddle-steamer.webn" type="video/webn">
  <source src="media/paddle-steamer.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

src表示视频的路径,type就按视频的格式来写

 

插入音频

<audio src="media/piano.mp3" controls="controls">
Your browser does not support the audio tag.
</audio>

src表示音频的路径,controls就这样来写

 

用<embed>插入多媒体元素

<embed src="media/012497_760100_0903.swf" width="760" height="100"></embed>

src表示多媒体元素的路径,并设置好高和宽

 

相关文章:

  • 2022-03-10
  • 2021-07-25
  • 2022-03-09
  • 2021-11-29
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-12-25
  • 2021-12-15
  • 2021-09-23
  • 2021-09-25
  • 2021-11-14
  • 2021-07-20
相关资源
相似解决方案