自舉

2014-03-29 61 views
1

玉語法錯誤的縮進我得到這個代碼在我index.jade,我使用的引導:自舉

block content 
    .container 
    .row 
    .col-lg-12 
     h1.page-header 1 Col Portfolio 
     small Showcase Your Work One Column at a Time 
    .row 
    .col-lg-7.col-md-7 
     a(href='#') 
     img.img-responsive(src='http://placehold.it/700x300', alt='') 
    .col-lg-5.col-md-5 
     h3 Project One 
     h4 Subheading 
     p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim. 
     a.btn.btn-primary(href='#') View Project 
     span.glyphicon.glyphicon-chevron-right 
    hr //**<- problem with this** 
    .row 
    .col-lg-7.col-md-7 
     a(href='#') 
     img.img-responsive(src='http://placehold.it/700x300', alt='') 
    .col-lg-5.col-md-5 
     h3 Project Two 
     h4 Subheading 
     p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod  odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim. 
     a.btn.btn-primary(href='#') View Project 
     span.glyphicon.glyphicon-chevron-right 

每次我嘗試添加小時標籤就像我會在HTML做行我之間來自Express的500 ReferenceError。

+0

嘗試縮進'.container'和第一個'.row'。 – bnuhero

+0

它們實際上已經在我的代碼中縮進了。我編輯了這篇文章。 –

回答

0

我發現了一個解決方案,其中包括在row

.row 
    hr 

不知道這是最好的做法,但現在的作品!