牛刀小试 html代码 <input type="checkbox" id="switch"/><label for="switch">Toggle</label> css代码 /*样式反转*/ .dark-mode{ filter:invert(1)