HTML input 输入框禁止显示输入过的历史数据
HTML 大约 293 字描述
input
输入框会自动提示在页面中提交过的数据。
解决
给input
添加autocomplete="off"
属性,关闭自动提示功能。
可能在一些浏览器出现兼容性问题。
添加disableautocomplete
属性,使之兼容。
完整代码
<form action="">
<input type="text" name="fname" required autocomplete="off" disableautocomplete>
<input type="submit" value="提交">
</form>
阅读 1642 · 发布于 2021-06-01
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Java 并发编程之 AQS CountDownLatch 源码解析阅读 1653
-
前端 Chrome 反《反调试》阅读 13179
-
软考-系统架构设计师:Flynn 分类法阅读 2940
-
VSCodium 代替 VS Code阅读 723
-
设计模式之迭代器模式阅读 2615
-
Keepalived + Nginx 搭建高可用负载均衡服务器阅读 3950
-
MySQL Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root阅读 5458
-
Android 使用 tools schemas 预览 UI阅读 2158
-
Kubernetes 设置默认 namespace阅读 1002
-
MySQL 查询过程阅读 2616