在JADE中使用下面的代碼,我沒有看到導航欄中的標籤文本,這裏有什麼問題,我嘗試使用縮進播放,但沒有成功我猜測Im失去了一些東西basic.please協助無法在導航欄中看到標籤文本
html
head
title= title
link(rel="stylesheet", href="bootstrap.min.css")
link(rel='stylesheet', href='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css')
script(src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js')
body
div
nav.navbar.navbar-inverse.navbar-fixed-top(role='navigation')
.container
.navbar-header
button.navbar-toggle(data-toggle='collapse', data-target='#bs-example-navbar-collapse-1')
span.sronly
span.icon-bar
span.icon-bar
span.icon-bar
#bs-example-navbar-collapse-1.collapse.navbar-collapse
ul.nav.navbar-nav
li
a(href='/recipes/bbq') Tab1
li
a(href='/recipes/bbq') Tab2
div.container
block content
這裏是JS提琴http://jsfiddle.net/jo1nnrp4/3/
這觀點,我想看看在導航欄中TAB1 & TAB2,並把到來文本中的灰色區域,怎麼能我這樣做?
更新
html
head
title= title
link(rel="stylesheet", href="bootstrap.min.css")
link(rel='stylesheet', href='//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css')
script(src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js')
body
div
nav.navbar.navbar-inverse.navbar-fixed-top(role='navigation')
.container
.navbar-header
button.navbar-toggle(data-toggle='collapse', data-target='#bs-example-navbar-collapse-1')
span.sronly
span.icon-bar
span.icon-bar
span.icon-bar
#bs-example-navbar-collapse-1.collapse.navbar-collapse
ul.nav.navbar-nav
li
a(href='/recipes/bbq') Tab1
li
a(href='/recipes/bbq') Tab2
div.container
block content
這是第二個文件/視圖,我在url看漲和看跌的到來數據在頁面
延伸佈局
block content
.jumbotron
h1= title
ul
each flight, index in arrivals
- landed = new Date(flight.actualArrive)
li= flight.number + ': ' + flight.origin + '-' + landed
請提供一個小提琴或可以看到呈現的html/css的東西。 – 2014-12-06 18:41:25
@ ZackTanner-HI Zack,不知道如何添加bootstrap引用,但這裏是JSfiddle與渲染的html http://jsfiddle.net/jo1nnrp4/1/ – 2014-12-06 19:16:10
@ ZackTanner-這是我想添加的新小提琴選項卡的導航欄和列表灰色地帶,我應該如何採用代碼http://jsfiddle.net/jo1nnrp4/3/ – 2014-12-06 19:29:08