所有图片自动调整到博客左侧

时间:2017-02-03 18:14:50

标签: html django

所有图片自动调整到博客左侧 我在这里创建了页面:http://dzikuss98.pythonanywhere.com/使用django

正如你所看到的,即使在发布帖子期间所有图片都是左对齐的,它们都在中间 在下面你可以看到我的博客模板:

{% extends "personal/header.html" %}
{% block content %}

    {% for post in object_list %}
    {% autoescape off %}
        <h5>{{ post.date|date:"Y-m-d" }}<a href="{{post.id}}"> <b> {{ post.title }}</b></a></h5>

        {{ post.body|linebreaks|truncatechars:300 }}

    {% endautoescape %}
    {% endfor %}
{% endblock %}

我使用WYSIWG编辑器

0 个答案:

没有答案