CSS 你如何将css链接到玉文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20256782/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 01:08:43 来源:igfitidea点击:
how do you link css to a jade file?
提问by Swat Designz
I am currently trying to link normalize.css
but its not working (using socket an express)
我目前正在尝试链接,normalize.css
但无法正常工作(使用 socket an express)
html
head
title= "Real time web chat"
link(href='/css/normalize.css')
script(src='/chat.js')
script(src='/socket.io/socket.io.js')
script(src='http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js')
body
#content(style='width: 100%; height: 600px; margin: 0 0 20px 0; border: solid 1px #999; overflow-y: scroll;')
.controls
| Name:
input#name(style='width:350px;')
input#field(style='width:350px; display: inline; margin-left -90px;')
input#send(type='button', value='send')
回答by Khanh Nguyen
You need rel
你需要 rel
link(href='/css/normalize.css', rel='stylesheet')