How to set a details element to OPEN by default or via CSS

前端 未结 2 1978
走了就别回头了
走了就别回头了 2021-02-18 17:07

HTML5 adds two new elements that are useful for marking up a table of contents for an article: details and summary.

T

2条回答
  •  生来不讨喜
    2021-02-18 17:25

    You can also use the alternative below it still has the ability to open and close but initially, it's opened and you can test that (I provided the output from my computer):

    Open

    Always open Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

    check the photo of the output below:

提交回复
热议问题