在html中添加背景音乐代码,最简单的就是使用bgsound属性。
来看下面的例子:
复制代码 代码示例:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<title>html背景音乐代码_www.jb200.com</title>
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><embed src="other/float.swf" quality="high" width="550" height="400"></embed>
<embed src="other/float.swf" quality="high" width="550" height="400" style="margin-top:0 "></embed></td>
<td><embed src="other/float.swf" quality="high" width="550" height="400"></embed>
<embed src="other/float.swf" quality="high" width="550" height="400"></embed></td>
</tr>
</table>
html页面中添加背景音乐:
<bgsound src="other/08.mp3" loop="-1">
</body>
</html>