Css 如何解除img src的阻止“;http://localhost:3000/favicon.ico 阻塞 ;img src";
我在css中有一个背景图像,正在使用pug模板,但在控制台中我得到“加载资源失败:服务器响应状态为404(未找到)登录:拒绝加载图像”http://localhost:3000"Css 如何解除img src的阻止“;http://localhost:3000/favicon.ico 阻塞 ;img src";,css,pug,Css,Pug,我在css中有一个背景图像,正在使用pug模板,但在控制台中我得到“加载资源失败:服务器响应状态为404(未找到)登录:拒绝加载图像”http://localhost:3000" body { background-image:url(../pictures/farmProducts.jpg); background-size: cover; background-attachment: fixed; font-family: 'Roboto', sans-
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')
正文{
背景图片:url(../pictures/farmProducts.jpg);
背景尺寸:封面;
背景附件:固定;
字体系列:“Roboto”,无衬线;
}
doctype html
html(lang=“en”)
头
标题:乌法姆
链接(href='css/index.css'rel='stylesheet'type='text/css'media='all')
身体
.main layouts.wrapper(style='padding:60px;')
h1ufarm登录表单
.主要投入
.间距
表单(action='/aoDashboard'method='post'name='form')
input.text(type='text'name='userName'占位符='userName'必需=“”)
input.text(type='password'name='password'占位符='password'必需=“”)
输入(type='submit'value='SIGNUP'onclick='access();')
你没有账户吗?
(href='signUp')注册!
脚本(src='../public/js/login.js')