问题描述
我在CSS中有一个背景图像,并且正在使用pug模板,但是在控制台中我收到“无法加载资源:服务器以404(未找到)状态进行了响应登录:拒绝加载图像'http:/ / localhost:3000'
body {
background-image:url(../pictures/farmProducts.jpg);
background-size: cover;
background-attachment: fixed;
font-family: 'Roboto',sans-serif;
}
doctype html
html(lang="en")
head
title UFarm
<!-- link css files-->
link(href='css/index.css' rel='stylesheet' type='text/css' media='all')
<!--main-->
body
.main-layouts.wrapper(style='padding: 60px;')
h1 UFarm LogIn Form
.main-inputs
.spacing
form(action='/aoDashboard' method='post' name='form')
input.text(type='text' name='userName' placeholder='Username' required='')
input.text(type='password' name='passWord' placeholder='Password' required='')
input(type='submit' value='SIGNUP' onclick='access();')
p Don't have an account?
a(href='signUp') SignUp!
script(src='../public/js/login.js')
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)