css | div 에 focus 효과 주기
페이지 정보
- 작성자:
- 핵탐
- 작성일
- 02.03 18:08
- 조회
- 2,410
- 댓글
- 0
본문
:focus-within 속성을 사용하면 된다.
[code language-html]
<style type="text/css">
.box:focus-within {
border: thin solid black;
}
</style>
<div class="box">aaaaa</div>
[/code]
댓글 0개
등록된 댓글이 없습니다.