답변 4개 / 댓글 3개
채택된 답변
+20 포인트
Copy
<html>
<head>
<style>
input,textarea:focus {
outline: none;
}
</style>
</head>
<body>
<input type="text" id="a" />
<textarea id="b"></textarea>
</body>
</html>
확인결과 잘됩니다.
How to remove the border highlight on an input text element
확인해보세요
다른 css 값 때문에 우선순위에서 밀리는거 같습니다.
css 강제 적용 해보세요. (강제 적용도 안된다면, 개발자 도구로 어떤값이 적용되는지 확인해야합니다.)
input,textarea:focus {
outline: none !important;
}
답변을 작성하려면 로그인이 필요합니다.
해당코드는 잘 되네요 감사합니다~