【发布时间】:2015-11-14 03:52:22
【问题描述】:
我在我的 node.js/express 应用程序中使用 Jade 进行模板化。但是当我尝试使用字体真棒时,图标不显示,只列出项目符号。我已经尝试了搜索引擎找到的所有方法。比如 fa.fa-globe 问题。 这是取自footer.jade的代码
span This is some other footer stuff.
ul
li.fa.fa-google-plus
a(href='#')
i.fa.fa-facebook
li
a(href='#')
i.fa.fa-lg.fa-twitter
li
a(href='#')
i.fa.fa-lg.fa-google-plus
li
a(href='#')
span.fa.fa-lg.fa-linkedin
span and some more footer stuff.
正如你在上面看到的,我尝试了多种方法,i、span 和 classes
而我的layout.jade如下:
doctype html
html
head
title= title
meta(name='viewport', content='width=device-width, initial-scale=1.0')
link(href='https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.5/darkly/bootstrap.css', rel='stylesheet', media='screen')
link(href='http://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css')
link(rel='stylesheet', href='/stylesheets/style.css')
include ./header.jade
body(style="padding-bottom:10rem;")
block content
script(src='http://code.jquery.com/jquery.js')
script(src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js')
谢谢
【问题讨论】:
标签: node.js express twitter-bootstrap-3 pug font-awesome