怎么样建那种背景不动而文字动的网页啊?

来源:百度知道 编辑:UC知道 时间:2024/05/22 14:24:50
怎么样建那种背景不动而文字动的网页啊?

用CSS。
代码如下
<style type="text/css">
<!--
body {
background-attachment: fixed;
background-image: url(doking.jpg);
background-repeat: no-repeat;
background-position: center center;
}
.style1 {color: #99CC00}
-->
</style>

上面按段代码的doking.jpg是你要做成背景的图片。