본문 바로가기
기타

svg 마우스 호버 툴팁 노출

by 바나냥 2020. 11. 25.
<svg>
  <title id="unique-id">Checkout</title>
  
  <!-- More detail -->
  <desc>A shopping cart icon with baguettes and broccoli in the cart.</desc>
</svg>

 

 

css-tricks.com/svg-title-vs-html-title-attribute/

 

SVG Title vs. HTML Title Attribute | CSS-Tricks

You know the title attribute? I can do this:

I'm a div with a `title`
And now if I'm on a device with a mouse pointer

 

css-tricks.com

 

댓글