HTML
CSS
JavaScript
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>列表控制 - 开关切换</title>
  <link rel="stylesheet" href="https://cdn.w3cbus.com/library/mdui/1.0.2/css/mdui.min.css"/>
</head>
<body>

  <div class="mdui-container">
    <ul class="mdui-list" style="max-width: 360px;">
      <li class="mdui-list-item mdui-ripple">
        <i class="mdui-list-item-icon mdui-icon material-icons">network_wifi</i>
        <div class="mdui-list-item-content">Wi-Fi</div>
        <label class="mdui-switch">
          <input type="checkbox" checked/>
          <i class="mdui-switch-icon"></i>
        </label>
      </li>
      <li class="mdui-list-item mdui-ripple">
        <i class="mdui-list-item-icon mdui-icon material-icons">bluetooth</i>
        <div class="mdui-list-item-content">Bluetooth</div>
        <label class="mdui-switch">
          <input type="checkbox"/>
          <i class="mdui-switch-icon"></i>
        </label>
      </li>
      <li class="mdui-list-item mdui-ripple">
        <i class="mdui-list-item-icon mdui-icon material-icons">data_usage</i>
        <div class="mdui-list-item-content">Data usage</div>
      </li>
    </ul>
  </div>

  <script src="https://cdn.w3cbus.com/library/mdui/1.0.2/js/mdui.min.js"></script>
</body>
</html>
CSS

  
JavaScript