问题(05)elementui 输入框里面禁止浏览器自动填充用户名密码、弹出浏览器历史密码提示框

问题描述

el-input,非密码框,在输入时,

  • 问题1: 浏览器自动填充用户名密码。
  • 问题2:右边显示浏览器历史密码提示框。

问题解决

问题1:使用auto-complete="new-password"

html 复制代码
<input type="text" placeholder="" class="custom_input" auto-complete="new-password" />

问题2,在证件号输入框后面在添加一个el-input框,并给新input框设置classs属性custom_input

html 复制代码
<input type="text" placeholder="" class="custom_input" auto-complete="new-password" />
css 复制代码
.custom_input {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	padding: 0;
	border: none;
}
相关推荐
pe7er1 天前
window管理开发环境篇 - 持续更新
前端·后端
We་ct1 天前
LeetCode 5. 最长回文子串:DP + 中心扩展
前端·javascript·算法·leetcode·typescript
陈随易1 天前
有生之年系列,Nodejs进程管理pm2 v7.0发布
前端·后端·程序员
冰暮流星1 天前
javascript之事件代理/事件委托
前端
@yanyu6661 天前
登录注册功能-明文
vue.js·springboot
陈随易1 天前
AI时代,你还在坚持手搓文章吗
前端·后端·程序员
里欧跑得慢1 天前
17. Flutter Hero动画实现:让界面过渡更加优雅
前端·css·flutter·web
IT_陈寒1 天前
Vue的这个响应式陷阱,我debug了一整天才爬出来
前端·人工智能·后端
kyriewen1 天前
前端测试:别为了100%覆盖率而写测试,那是自欺欺人
前端·javascript·单元测试
去伪存真1 天前
我自己写的第一个skills--project-core-standards
前端·agent