CSS Show Hide Only

后端 未结 1 887
情歌与酒
情歌与酒 2021-01-23 16:07

The design of my website is integrated within their company. Basically they are rebranding their website with my information and logo. They want extra money to change any HTML f

1条回答
  •  伪装坚强ぢ
    2021-01-23 16:40

    You can do something like this:

    /* Make H3 look like a link. */
    h3 {cursor: pointer;}
    /* Hide all the OLs initially */
    h3 + ol {display: none;}
    /* Show when the user hovers H3 */
    h3:hover + ol {display: block;}
    /* Or show when he clicks and holds */
    h3:active + ol {display: block;}
    

    0 讨论(0)
提交回复
热议问题