<html>
<head>
<title>登陆界面</title>
</head>
<body
<?php
/*
* Created on 2011-9-3
*
* Author:
*/
?>
<form action="DataBase.php" method="post">
用户名:<input type="text" name="username" maxlength="40"/><br/>
密码:<input type="password" name="pwd" maxlength="40"/><br/>
<input type="submit" value="提交"/>
</form>
</body>
</html>
在页面里面加CSS就可以设置背景图,直接在页面最上面写:
body{background:url(背景图片地址);}
</style>
这样子就可以,我可以写成内联的CSS:
...</head>
<body style="background:url(背景图片地址);">
...
</body>
</html>
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-09-04
在<body>中:
<body style="background:"背景图的路径和文件名">
<body style="background:"背景图的路径和文件名">
第2个回答 2011-09-04
还不是一样在css中,设置body的background