模板 for 循环 出现了不同的内容(百思不得其解)

 <tbody>
                    {% for post in posts %}
                        <tr>
                            <td class="article-title">{{ post.author.username }}</td>
                            <td class="article-title">{{ post.title }}</td>
                            <td>{{ post.category.name }}</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">{{ post.comments|length }}</td>
                            <td>{{ moment(post.timestamp).format('LL') }}</td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="{{ url_for('delete_post', post_id=post.id) }}" method="post">
                                    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除「文章: {{ post.title }}」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                    {% endfor %}
 </tbody>

按理说每一条记录的样式应该是一样的,但是出现的效果是这样子:


注意看第一条!
而且第一条点删除按钮就提示

Method Not Allowed

The method is not allowed for the requested URL.

每一个分页的第一条记录都是这样!
怎么回事啊?

没遇到过这种情况,试试 Ctrl + F5 ?

没用!

其他条目都时正常的,就是分页的第一条有问题

看看渲染后的页面源码或许会有帮助。

看过了,没看出什么问题啊!
(可能是功力不够)

 <tbody>
                        <tr>
                            <td class="article-title">97</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">发布积分只要这样.</td>
                            <td>生活</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">4</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-18T08:01:56Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-18T08:01:56Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/97" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 发布积分只要这样.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">11</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">提高发生类型城市软件地区.</td>
                            <td>之间</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-17T13:48:08Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-17T13:48:08Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/11" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 提高发生类型城市软件地区.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">109</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">工具以及上海日期生产.</td>
                            <td>比较</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">5</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-15T07:02:24Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-15T07:02:24Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/109" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 工具以及上海日期生产.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">291</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">电子参加安全首页.</td>
                            <td>之间</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">1</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-12T11:00:15Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-12T11:00:15Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/291" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 电子参加安全首页.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">165</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">中心密码管理影响会员.</td>
                            <td>比较</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">1</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-11T05:48:48Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-11T05:48:48Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/165" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 中心密码管理影响会员.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">93</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">深圳单位个人无法使用更多可是.</td>
                            <td>浏览</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">6</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-09T09:36:45Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-09T09:36:45Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/93" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 深圳单位个人无法使用更多可是.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">4</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">东西经济搜索准备完全进行.</td>
                            <td>的话</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">4</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-08T08:26:48Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-08T08:26:48Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/4" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 东西经济搜索准备完全进行.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">70</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">以后科技情况阅读提高.</td>
                            <td>感觉</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-07T12:28:36Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-07T12:28:36Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/70" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 以后科技情况阅读提高.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">39</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">工作方式能够本站可能对于.</td>
                            <td>之间</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-06T19:02:00Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-06T19:02:00Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/39" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 工作方式能够本站可能对于.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">73</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">安全学生由于功能实现开始部门.</td>
                            <td>更新</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-06T04:33:08Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-06T04:33:08Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/73" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 安全学生由于功能实现开始部门.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">92</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">注册业务之后今天.</td>
                            <td>生活</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">4</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-04T15:29:10Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-04T15:29:10Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/92" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 注册业务之后今天.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">184</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">规定提高只有.</td>
                            <td>浏览</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">2</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-03T10:20:39Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-03T10:20:39Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/184" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 规定提高只有.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">187</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">地方感觉语言男人使用.</td>
                            <td>查看</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">0</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-02T22:00:24Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-02T22:00:24Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/187" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 地方感觉语言男人使用.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">57</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">由于对于知道中文游戏但是女人.</td>
                            <td>的话</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">5</td>
                            <td><span class="flask-moment" data-timestamp="2019-03-01T18:36:54Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-03-01T18:36:54Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/57" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 由于对于知道中文游戏但是女人.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">233</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">类别商品不断表示.</td>
                            <td>更新</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">1</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-28T01:54:03Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-28T01:54:03Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/233" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 类别商品不断表示.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">78</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">以上使用我的如此系统.</td>
                            <td>比较</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">5</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-26T23:57:14Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-26T23:57:14Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/78" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 以上使用我的如此系统.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">150</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">功能地址只是非常首页.</td>
                            <td>更新</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-26T20:49:47Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-26T20:49:47Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/150" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 功能地址只是非常首页.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">16</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">部分就是的话.</td>
                            <td>浏览</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">6</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-22T19:08:07Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-22T19:08:07Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/16" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 部分就是的话.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">152</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">这种经营注意.</td>
                            <td>查看</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">0</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-21T17:46:12Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-21T17:46:12Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/152" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 这种经营注意.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                        <tr>
                            <td class="article-title">42</td>
                            <td class="article-title">大瓜</td>
                            <td class="article-title">觉得以下很多只有分析你们觉得设备.</td>
                            <td>浏览</td>
                            <td class="hidden-sm">PHP、JavaScript</td>
                            <td class="hidden-sm">7</td>
                            <td><span class="flask-moment" data-timestamp="2019-02-21T17:03:06Z" data-format="format('LL')" data-refresh="0" style="display: none">2019-02-21T17:03:06Z</span></td>
                            <td>
                                <a href="#" class="btn btn-primary btn-sm">修改</a>
                                <form class="inline" action="/admin/delete-post/42" method="post">
                                    <input type="hidden" name="csrf_token" value="ImJlMjJmYzNmMDViOGExYzM2MjQ1NzlhOTEwNTQwM2NhYWExODkwY2Ui.XJGhyg.rxyvSRIKuDH0oD_Bqldmp2Pfgy0">
                                    <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认要删除 文章:「 觉得以下很多只有分析你们觉得设备.」吗?');">删除</button>
                                </form>
                            </td>
                        </tr>
                    </tbody>

可能是对第一条设置了额外的CSS样式?可以检查一下css文件