html - 它没有得到正确的信息
问题描述
index.html 没有显示任何错误,但没有显示它应该显示的信息。
使用标签时没有问题,但尝试从网站获取信息时,它根本不显示。
<div class="box">
<article class="media">
<div class="media-left">
<figure class="image is-50x50">
<img src="http://openweathermap.org/img/w/{{ weather.icon }}.png" alt="Image">
</figure>
</div>
<div class="media-content">
<div class="content">
<p>
<span class="title">{{ weather.city }}</span>
<br>
<span class="subtitle">{{ weather.temperature }}°F </span>
<br> {{ weather.description }}
</p>
</div>
</div>
</article>
没有错误,只是图片没有显示
解决方案
推荐阅读
- python - 在 Django 模板中访问对象属性
- cakephp - PHPUnit 在 CakePHP 3.5 中使用键和参数测试 Flash 消息
- oauth-2.0 - 验证linkedin访问令牌服务器端
- javascript - 打开iFrame 外的弹出窗口
- android - Django REST 框架:从 android 发送图像
- ruby - 有没有办法将“gem install”到仅开发环境或测试?
- python - Python unittest 返回“在 0.000 秒内运行 0 个测试”,我不知道为什么
- javascript - JS append 函数中断表单字段迭代
- react-native - 使用 Twilio(用于 SMS)的“加密”错误
- bash - Bash,openssl,退出状态的奇怪行为