How to create spoiler text?

后端 未结 5 2076
遇见更好的自我
遇见更好的自我 2021-02-20 04:39

Hello I was wondering how to make spoiler text on a website with html/css. What I was is, text that is black with black background, but when hovered over, makes the black text

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-20 05:28

    The

    HTML tag was designed specifically for this purpose. Here is the example from the MDN docs. Unfortunately, IE and edge don't support this tag as of January 2019.
    Details Something small enough to escape casual notice.

提交回复
热议问题