분류
css
텍스트 선택의 스타일을 변경
본문
HTML :
<p class="custom-text-selection">Select some of this text.</p>
CSS :
::selection {
background: aquamarine;
color: black;
}
.custom-text-selection::selection {
background: deeppink;
color: white;
}
- 이전글box-shadow와 비슷하지만 요소 자체의 색상을 기반으로 그림자를 만들기 18.06.14
- 다음글사용자 정의 스크롤바 18.06.14