크롬 focus 시 파란 테두리 없애는 방법좀 알려주세요

크롬 focus 시 파란 테두리 없애는 방법좀 알려주세요

QA

크롬 focus 시 파란 테두리 없애는 방법좀 알려주세요

답변 4

본문

크롬브라우저에서  input 박스에 클릭했을때 파란 테두리가 생기는데요

이걸 없애고 싶습니다.

 

인터넷 검색하니까

input:focus{

    outline: none;

}

 

이렇게 하면 된다는데 안되네요

방법 좀 알려주세요

이 질문에 댓글 쓰기 :

답변 4


<html>
<head>
<style>
input,textarea:focus {
        outline: none;
   }
</style>
</head>
<body>
<input type="text" id="a" />
<textarea id="b"></textarea>
</body>
</html>

 

확인결과 잘됩니다.

다른 css 값 때문에 우선순위에서 밀리는거 같습니다.

css 강제 적용 해보세요. (강제 적용도 안된다면, 개발자 도구로 어떤값이 적용되는지 확인해야합니다.)

input,textarea:focus {

        outline: none !important;

}

 

참고 : http://aboooks.tistory.com/120

How to remove the border highlight on an input text element

https://stackoverflow.com/questions/1457849/how-to-remove-the-border-highlight-on-an-input-text-element

 

확인해보세요

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,102
© SIRSOFT
현재 페이지 제일 처음으로