qq_45735316
qq_45735316
2020-06-10 15:16

为什么背景图出不来?是哪里的代码错了?

  • css
  • html5
  • javascript

图片说明
//login.html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>用户登录</title>
        <link rel="stylesheet" href="css/final project.css">
        <script src="js/final project.js"></script>
    </head>
    <body>
        <div class="loginbkg">
            <table align="center" cellpadding="5px">
            <tr>
                <td>&nbsp;</td>
                <td align="left">用户登录</td>
            </tr>
            <tr>
                <td align="right">用户名:</td>
                <td>
                    <input type="text" id="username" autocomplete="off">
                </td>
            </tr>
            <tr>
                <td align="right">密&nbsp;&nbsp;码:</td>
                <td>
                    <input type="password" id="userpassword" autocomplete="off">
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <input type="button" value="登录" id="login" onclick="log()">&nbsp;
                    <a href="reg.html">注册新用户</a>
                </td>
            </tr>
        </table>
        </div>

    </body>
</html>

//final project.css

.loginbkg{
    background-image: url(img/2016-04-25 183455.jpg);
    background-repeat: no-repeat;
}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答