你如何将CSS链接到玉文件?

Swa*_*gnz 27 css node.js express pug

我目前正在尝试链接,normalize.css但它不工作(使用套接字快递)

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')
Run Code Online (Sandbox Code Playgroud)

Kha*_*yen 53

你需要 rel

link(href='/css/normalize.css', rel='stylesheet')
Run Code Online (Sandbox Code Playgroud)