Change background on button click, using CSS only?

前端 未结 6 2133
囚心锁ツ
囚心锁ツ 2020-12-03 12:05

Is it possible to change the background color on button click; of the entire document, using only CSS and HTML5?

(e.g.: it\'s trivial in Ja

6条回答
  •  感情败类
    2020-12-03 12:35

    Unfortunately, there's no backtracing in css rules; for a css selecter, there's no way to climb up an element's ancestors.

提交回复
热议问题