<form>
<input class="form-control w-75" type="number" id="zrs" value="1500" step="100" min="0" max="{{ bfcbrs|floatformat:"0" }}" required>
<span class="validity"></span>
<div>
<input type="submit" value="确认" class="btn btn-outline-info w-50" style="bottom: auto">
</div>
</form>
参考官网
https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/number#%E9%AA%8C%E8%AF%81