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

时间:2013-11-28 02:42:04

标签: 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')

1 个答案:

答案 0 :(得分:53)

您需要rel

link(href='/css/normalize.css', rel='stylesheet')
相关问题