用记事本制作网页怎么插入背景和背景音乐

本人要求举例子,别瞎说,复制其他网站的走开,不会来回答的老子BS你,

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次。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-03-29
把这段代码放在的你的HTML标签里即可 : "<bgsound src="sound.wav" loop=-1>" //LOOP为音乐的不放次数 ,-1可以无限循环. 列子:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=" http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head >
<body style="background-image:url(file:///C|/Documents and Settings/Administrator/桌面/logo.gif))"> 这句话设置当前页面的背景图片</body></html>
第2个回答  2013-03-29
......SB.....
第3个回答  2013-03-29
不知道,就是不知道
相似回答