取消input表单轮廓线 outline鼠标选中输入框后的边框线

input输入框在鼠标选中时边框会变化 就是外边框outline

设置outline:0;或者outline:none;即可取消

<!DOCTYPE html>
<html lang="zn-cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        input {
            width: 300px;
            height: 30px;
            outline: none;
        }
    </style>
</head>
<body>
    <input type="text">
</body>
</html>

 

posted @ 2022-06-13 15:56  欧阳天天  阅读(614)  评论(0编辑  收藏  举报