登陆了别人的icloud:dreamweaver里怎样将背景图案设置为"固定"??

来源:百度文库 编辑:高考问答 时间:2024/05/06 00:41:33
我加入了背景图案,并在CSS设置为固定,但不起作用.

下面是代码,帮我看看是什么原因:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎来到我的网页</title>
<style type="text/css">
<!--
body {
background-image: url(00hxf.jpg);
}
.unnamed1 {
background-attachment: fixed;
}

-->
</style></head>

<body>

请使用这个代码在你样式表中
<style>
.style_1{
color: slategray;
background-image: url("00hxf.jpg");
background-attachment: fixed;
}
</style>