在子模板内添加如下代码确保IE11的兼容性问题。{% extends 'bootstrap/base.html' %}{% block metas %} <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> {% endblock %}