별의 공부 블로그 🧑🏻‍💻
728x90
728x170

요소에 마우스 커서를 올릴 때 설명문 나타나도록 하기 (Hover Text 추가하기)

들어가며

  • 요소에 속성을 추가하여 요소에 마우스 커서를 올리면 설명문이 나타나도록 설정할 수 있다.

 

방법

  • 요소에 title 속성을 지정해주면 된다.
<a title="description"></a>

 

사용 예

<a id="nextPost" title="다음글 이동😎"></a>

 

참고

https://stackoverflow.com/questions/11022843/add-hover-text-without-javascript-like-we-hover-on-a-users-reputation

 

Add hover text without javascript like we hover on a user's reputation

In stackoverflow, when we hover on a user's reputation we see a text. I have seen this at many places and the source code tells me that it can be done without js. And i tried and got only this- &...

stackoverflow.com

 

728x90
그리드형(광고전용)
⚠️AdBlock이 감지되었습니다. 원할한 페이지 표시를 위해 AdBlock을 꺼주세요.⚠️
starrykss
starrykss
별의 공부 블로그 🧑🏻‍💻


📖 Contents 📖