2016-11-30 44 views
0

我想是指在玉佈局,referes到的意見文件,但它不是refereing.please檢查我的代碼custom.css和bootstrap.min.css是什麼問題如何推薦在玉佈局css文件

玉佈局

doctype html 
html 
    head 
    title= title 
    link(rel='stylesheet', href='/stylesheets/style.css') 
body 
    block content 

查看文件

extends layout 

block content 
    h1= title 
    p Welcome to #{title} 

的style.css

body { 
padding: 50px; 
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 
background: #666; 

}

p { 
color: #00B7FF; 

}

+0

你的玉石佈局在這個問題上搞砸了。 –

+0

修復您的縮進,它應該工作 – xShirase

+0

我已經對我的代碼現在適當。請檢查一下 – AtmanSangeetha

回答

1
doctype html 
    html 
     head 
      title= title 
      link(rel="stylesheet" href="/stylesheets/style.css") 


<!doctype html> 
    <html> 
     <head> 
      <title> title </title> 
      <link rel="stylesheet" href="/stylesheets/style.css" /> 
     </head> 
    </html> 

這是玉一個基本代碼。
然而,你的代碼是這樣

doctype html 
    html 
     head 
     title= title 
     link(rel="stylesheet" href="/stylesheets/style.css") 

<!doctype html> 
    <html> 
     <head></head> 
     <title> title </title> 
     <link rel="stylesheet" href="/stylesheets/style.css" /> 
    </html> 

正如你可以看到鏈接是頭部標籤之外!
玉的縮進對於將玉換成HTML5非常重要。

如果您正確縮進代碼,則應該檢查公用文件夾目錄路徑app.js