main
syk1209wwz0306 6 months ago
parent 303b85a011
commit 4903aa1da5

@ -8,10 +8,7 @@
/* ... 保留原有的样式定义 ... */
</style>
'''<a href="{% url 'detail' movie.pk %}">
<img src="{% static 'movie/poster/'|add:movie.imdb_id|add:".jpg" %}" alt="{{ movie.name }}">
</a>
'''
<!-- 展示电影信息 -->
<div class="container">

@ -27,13 +27,16 @@
<div class="container">
<!-- 展示电影图片 -->
{% for movie in movies %}
<div class="item">
<a href="{% url 'movie:detail' movie.pk %}" class="item">
<div class="poster_div">
<img src="/static/movie/poster/{{ movie.imdb_id }}.jpg" alt="{{ movie.name }}">
<p>{{ movie.name }}</p>
</div>
<img src="/static/movie/poster/{{ movie.imdb_id }}.jpg" alt="">
<p>{{ movie.name }}
<strong style="color:#e09015">{{ movie.get_score }}</strong>
</p>
</div>
</a>
{% endfor %}
</div>
<!-- 分页导航 -->

Loading…
Cancel
Save