【发布时间】:2020-02-02 11:58:31
【问题描述】:
我正在制作 django 表单,它在迁移到它时需要一个默认值,但我想显示这个:“--------”默认情况下,而不是 0 仅使用 css: 我的 django 表单如下所示:
<div class="row">
<div class="col-md-6 col-sm-8 col-12">
<form method="post" novalidate>
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-success">Save</button>
<a href="{% url 'employee:products_table' %}" class="btn btn-outline-secondary" role="button">Nevermind</a>
</form>
</div>
</div>
在这个 img 中,我想要“------”而不是显示 0,但只能使用 css 完成。
【问题讨论】:
-
请向我们展示您使用的表格。
-
你不能用 CSS 改变 HTML。
标签: javascript html css django django-forms