1、给整个网页添加纯颜色背景
<body bgcolor="#000000"> 在引号中换成想要的颜色数值即可
2、给网页添加图片背景
<body background="images/123P.jpg"> 引号中填写要添加的图片路径
3、给表格添加
背景图片<table width="1200" background="images/123P.jpg"> 引号中填写要添加的图片路径 <tr>
<td>添加背景图片</td>
</tr>
</table>
4、给某个模块添加背景图片
<div style="background="images/123.JPG""> 引号中填写要添加的图片路径
添加背景图片
</div>
5、插入背景音乐
<embed src="小苹果.mp3" width=300 height=120 type=audio/mpeg loop="true" autostart="true">
代码说明:
width和height表示播放器宽度和高度;
autostart="true"表示自动播放,为"false"表示不自动播放; loop="true"表示连续循环播放,loop="false"表示不循环播放; loop也可以设为一个整数,比如loop="3",表示音乐循环播放3次。