Toggle divs without using Javascript

后端 未结 11 2043
日久生厌
日久生厌 2020-12-06 10:19

I\'d like to toggle a

, but my requirement is that it must work with javascript turned off. I would like to select a hyperlink that sta
11条回答
  •  臣服心动
    2020-12-06 11:08

    You can't toggle on clicks without javascript. End.

    Update:

    If you can use CSS 3 selectors, you'll have to change your DOM structure and use CSS 3 selectors without a library that covers old browsers which are probably a lot more common than users with javascript off, You can usee @pointy answer with :selected.

    So I would say, practically it's still impossible...!

提交回复
热议问题