【发布时间】:2014-04-06 13:40:54
【问题描述】:
我正在制作一个基于 Express 的网络应用程序,每次有人访问这个玉文件时,我都会收到以下错误:
Warning: missing space before text for line 28 of jade file "C:\x\app\view
s\login.jade"
它还会为它发生的每一行吐出几次。
我查看了这些行,但我无法弄清楚它在抱怨什么。
我的玉文件如下:
doctype html
html
head
meta(charset='utf-8')
link(href='style.css', rel='stylesheet')
body
.wrapper
header.header
a(href="/", style="color: #000000;")
h1(style="position: absolute; top: 30px;") Hello
.middle
.container
main.stream
p Login
main.name
form(id="login", method="POST", action="/login")
table(cellspacing="15")
tr
td Email
td
input(type='email', name='email' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")
tr
td Password
td
input(type='password', name='password' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")
tr
td
input(style="width:75px;height:30px;", type="submit", value="Login")
aside.left-sidebar
main.dir
a(href="/") Home
main.dir
a(href="/signup") Register
footer.footer
h3 Hello
p This is a footer
【问题讨论】:
-
我认为这没什么大不了的,但是您在元素语法中混合使用了逗号而没有逗号。
input(type='password', name='password' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")与input(style="width:75px;height:30px;", type="submit", value="Login") -
@WaynePincence 确实,我不知道我怎么没听懂,谢谢!
标签: pug