【发布时间】:2016-01-06 11:49:13
【问题描述】:
我的 Meteor 应用中有这个 HTML:
<template name='layout'>
{{> banner}}
{{> yield}}
</template>
<template name="banner">
<h1 class="monospaceboldsmallcap chocolatefont">Platypi of the World Unite! (Duckbilled, that is)</h1>
<hr/>
</template>
...还有这个 CSS:
hr {
background:url('/images/dbp.jpg') repeat-x top left;
border: 0;
}
图像在 /public/images/dbp.jpg 中,但它根本不显示 - 事实上,以前的“plain jane”hr 也不再显示。
我在这里遗漏了什么或做错了什么?
【问题讨论】:
-
您可能需要设置一个高度值。
-
您也可以尝试在斜线前多加一个点:'./images/dbp.jpg'。
标签: html css meteor meteor-blaze spacebars