css背景图片固定并覆盖内容~

html-css010

css背景图片固定并覆盖内容~,第1张

这个是它的css,意思都好理解,但貌似还有一些定义,没有找到。

<htmle>

<style>

#extraDiv1 {position:fixedwidth:227pxbottom:0pxbackground:url(r3_zen666_tombstone.png) no-repeat left topheight:267pxleft:540px}

* {padding-bottom:0pxmargin:0pxpadding-left:0pxpadding-right:0pxpadding-top:0px}

</style>

<body>

<div id="extraDiv1"><span></span></div>

</body>

</html>

使用CSS设置背景音乐,这个对于现在网页设计中,不太适用,一般都是通过html标签来实现,使用那个bgsound标签,用法:<bgsound src="">,src之后加这个音乐的路径,具体实现可以看下代码:

<html>

<head>

<title>音乐的是实现</title>

<bgsound loop="infinite" src="sound/xxx.mid">

</head>

<body>

</body>

</html>