隐藏IE浏览器下面,输入密码时显示的一个鱼眼

Posted 内心澎湃的水晶侠

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了隐藏IE浏览器下面,输入密码时显示的一个鱼眼相关的知识,希望对你有一定的参考价值。

在IE下面,对于 type 是password的 input,输入中会出现一个鱼眼,这个鱼眼可以通过伪类隐藏掉。

1. 隐藏前:

2. 隐藏后:

 

 隐藏方法:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .hidden::-ms-reveal { 
            display: none; 
        }
    </style>
</head>

<body>
    <input type="password" class="hidden">
    <input type="password">
</body>

</html>

  

以上是关于隐藏IE浏览器下面,输入密码时显示的一个鱼眼的主要内容,如果未能解决你的问题,请参考以下文章