我编写了一些 HTML 代码,并想在 Firefox 上进行测试。显然,Firefox 无法识别带有“包数”的 number 属性。我在 Mozilla 中只有一个文本框。我用 Chrome 仔细检查了我的代码,我得到了预期的结果。带有箭头的小盒子在一边改变盒子内的数量。
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="http://starbuzzcoffee.com/processorder.php" method="POST">
<p>
Number of bags: <input type="number" name="bags" min="1" max="10" ><br>
Must arrive by date: <input type="date" name="date">
</p>
</form>
</body>
</html>
可能是什么问题呢?
编辑:显然 Mozilla 不支持该功能。