{% for post in post_list %}
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="homepost">
<blockquote>
<a class="h3" href="{% url 'posts:detail' post.id %}">{{ post.title }}</a>
<footer>By {{ post.user }}</footer>
</blockquote>
<p>{{ post.content|lower|truncatechars:"15" }}</p>
<ul class="list-group">
<li class="list-group-item-text">{{ post.likes }} people like this</li>
<li class="list-group-item-text">{{ post.comments.count }} Comments </li>
</ul>
</div>
</div>
</div>
{% endfor%}这是我的代码,问题是我的区块大小与我的实际文章大小不同。
像这样,

问题是,在每个帖子块的左上角有一个空白,这是在我使用区块引号之后出现的。就像在第一篇文章里,
测试后的勒维特
左边有一个白色的长方形,为什么会发生这种事情?
它的解决办法是什么?
发布于 2017-03-03 19:19:00
https://stackoverflow.com/questions/42564758
复制相似问题