How to create spoiler text?

后端 未结 5 2075
遇见更好的自我
遇见更好的自我 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条回答
  •  孤街浪徒
    2021-02-20 05:10

    Here's an example:

    
    
    
      
        
        
        Spoilers
        
      
      
        

    Spoiler text [You can change this!]

    Spoiler text [You can change this!]

    Spoiler text [You can change this!]

    Spoiler text [You can change this!]

    Spoiler text [You can change this!]
    Spoiler text [You can change this!]
    Spoiler text [You can change this!] Spoiler text [You can change this!] Spoiler text [You can change this!]

    Spoiler text [You can change this!]

提交回复
热议问题