0
我的网站上做2个样式表(白天和黑夜,因为我觉得很难读取漆黑的深夜,房间里全白背景样式)单选按钮拨动开关来改变样式表
我发现风格的拨动开关和我希望在css切换器上使用它们。
<div class="switch switch-blue">
<input type="radio" class="switch-input" name="view2" value="week2" id="week2" checked>
<label for="week2" class="switch-label switch-label-off">Week</label>
<input type="radio" class="switch-input" name="view2" value="month2" id="month2">
<label for="month2" class="switch-label switch-label-on">Month</label>
<span class="switch-selection"></span>
</div>
,如果我打开我的文档
<a href="#" onclick="setActiveStyleSheet('default'); return false;">style 1</a>
<a href="#" onclick="setActiveStyleSheet('alternate 1'); return false;">style 2</a>
如何让我的单选按钮,这两者之间进行切换两个样式?
感谢