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

问题描述

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

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

在这里插入图片描述

问题解决

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

<input type="text" placeholder="" class="custom_input" auto-complete="new-password" />

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

<input type="text" placeholder="" class="custom_input" auto-complete="new-password" />
.custom_input {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	padding: 0;
	border: none;
}

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-15 09:34:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-15 09:34:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-15 09:34:02       87 阅读
  4. Python语言-面向对象

    2024-06-15 09:34:02       96 阅读

热门阅读

  1. WPF第三方开源UI框架:打造独特体验的魔法师

    2024-06-15 09:34:02       38 阅读
  2. Spring Boot 和 Spring Cloud 的区别及选型

    2024-06-15 09:34:02       40 阅读
  3. 深入解析 MySQL 事务:从基础概念到高级应用

    2024-06-15 09:34:02       34 阅读
  4. C++ const关键字有多种用法举例

    2024-06-15 09:34:02       34 阅读
  5. 回溯算法练习题(2024/6/12)

    2024-06-15 09:34:02       35 阅读
  6. 如何发布自己的NPM插件包?

    2024-06-15 09:34:02       37 阅读
  7. rman 后 PDB datafile 丢失要在PDB级删除

    2024-06-15 09:34:02       24 阅读
  8. 【技巧】Leetcode 191. 位1的个数【简单】

    2024-06-15 09:34:02       26 阅读