g is automatically #377ba8; } .post > header { display: flex; align-items: flex-end; font-size: 0.85em; } .post > header > div:first-of-type { flex: auto; } .post > header h1 { font-size: 1.5em; margin-bottom: 0; } .post .about
<div>

{{ post['title'] }}

<div class="about">by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}div> div> {% if g.user['id']
0 码力 | 428 页 | 895.98 KB | 1 年前
3
  • pdf文档 Flask Documentation (1.1.x)

    block header %}{% endblock %} {% for message in get_flashed_messages() %} <div class="flash">{{ message }}div> {% endfor %} {% block content %}{% endblock %} g is automatically available ˓→} .post > header { display: flex; align-items: flex-end; font-size: 0.85em; } .post > header > div:first-of-type { flex: auto; } .post > header h1 { font-size: 1.5em; margin-bottom: 0; } (continues
    <div>

    {{ post['title'] }}

    <div class="about">by {{ post['username'] }} on {{ post['created'].strftime( ˓→'%Y-%m-%d') }}div> div> {% if g.user['id'] == post['author_id']
    0 码力 | 291 页 | 1.25 MB | 1 年前
    3
  • pdf文档 Flask入门教程

    函数获取提示消 息并显示: {% for message in get_flashed_messages() %} <div class="alert">{{ message }}div> {% endfor %}

    ...

    alert 类为提示消息增加样式: .alert { position: relative;
    0 码力 | 127 页 | 7.62 MB | 1 年前
    3
  • 共 3 条前往