[英]Cant get Jade syntax correct
我有这个玉器布局文件,但是每次尝试渲染它时,都会出现“意外文本”; 在backgound上:url(...)。 我不确定如何解决。 我看了另一个例子,他们这样做。
doctype html
html
head
style
body {
background: url('!{imageURI}');
background-size:75%;
background-repeat: no-repeat;
}
body
h1 Tweets
h1 #{tweet.text}
h1 @#{tweet.user.screen_name}
您的哈巴狗模板中有两个错误:
style
之后缺少点。 正确的模板如下所示:
doctype html
html
head
body
style.
body {
background: url('!{imageURI}');
background-size: 75%;
background-repeat: no-repeat;
}
h1 Tweets
h1 #{tweet.text}
h1 @#{tweet.user.screen_name}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.