【发布时间】:2017-07-27 04:00:28
【问题描述】:
我正在尝试在我用 Vue.js 制作的静态网站上获得一张简单的引导卡。我为此使用 Bootstrap-Vue。但是,当我使用 b-card 和 img 属性时,我似乎无法显示图像。这是卡片上的文档:
https://bootstrap-vue.js.org/docs/components/card
这是我没有显示图像的代码(所有其他文本都在渲染,甚至是 github 图标)
<b-card img="`../assets/q1.png`" title="7 Little Words" class="mb-2 col-md-6">
<!--The image above is not showing-->
<h5 :style="{fontSize:1.3+'em', marginTop:20+'px'}">An addictive vocabulary puzzle for word nerds</h5>
<div class="demo">
<a href="" :style="{marginBottom:10+'px'}">VIEW DEMO</a>
</div>
<div class="github">
<h4>Github</h4>
<!--This image below is showing-->
<a href=""><img src="../assets/GitHub.png" alt="GitHub"></a>
</div>
</b-card>
我认为它必须与b-card 中的img 属性有关,但我不确定如何修复它。另外,这是我在控制台中的错误:
【问题讨论】:
标签: html twitter-bootstrap vue.js