这是我的文件结构: http://i.imgur.com/XleRVbc.png玉模板不包括CSS
里面的观点,我有了下面的代码layout.jade:
doctype 5
html
head
title= title
link(rel='stylesheet', href='../bootstrap/css/bootstrap.min.css')
link(rel='stylesheet', href='../bootstrap/css/bootstrap-responsive.min.css')
script(src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js')
script(src='../bootstrap/js/bootstrap.min.js')
body
block content
这是index.jade:
extends layout
block content
div.top
form.form-horizontal(method="post", id="loginForm")
label Username
input.span3(id="username", type="text", name="User", placeholder="Enter your username")
label Password
input.span3(id="password", type="password", name="Password")
input.btn(type="submit", value="Log In")
div.container
div.content
table.table.table-striped
thead
tr
th Table
th Heading
tbody
tr
td Blah
td Test
tr
td Hello
td World
div.footer
但它看起来像CSS不g等应用,因为页面的样子:
http://i.imgur.com/8CjRlKC.png
CSS的是所谓的自举的文件夹中/ CSS
这将是如果更好你提供了生成的html。但我敢打赌,你刚刚得到的CSS路径错误 – vkurchatkin