怎么设置jsp中的页面背景图片???
为何在jsp中<body>设置背景图片不显示
<style>
.test{
width:100%;
height:100%;
background-image:url(./xx.png);
background-repeat:no-repeat;
position:absolute;
z-index:100;
}
.test1{
width:100px;
height:100px;
background-color:#FF0000;
position:absolute;
z-index:1000;
margin-left:500px;
margin-top:300px;
}
</style>
</head>
<body>
<div class="test"><img />
</div>
<div class="test1">
<form action="login" method="post">
用户名:<input type="text" name="user" value=""><br>
密 码:<input type="password" name="pwd" value=""><br>
<input type="submit" value="登录"> <a href="register.jsp">注册</a>
</form>
</div>