<div style="padding:20px;"> <h2>开关大小</h2> <p>使用 <code>.large</code>, <code>.small</code> 或 <code>.tiny</code> 类来设置开关的大小:</p> <span>Large</span> <div class="switch large"> <input id="mySwitch1" type="checkbox"> <label for="mySwitch1"></label> </div> <span>Default</span> <div class="switch"> <input id="mySwitch2" type="checkbox"> <label for="mySwitch2"></label> </div> <span>Small</span> <div class="switch small"> <input id="mySwitch3" type="checkbox"> <label for="mySwitch3"></label> </div> <span>Tiny</span> <div class="switch tiny"> <input id="mySwitch4" type="checkbox"> <label for="mySwitch4"></label> </div> </div>