HTML
CSS
JavaScript
play_arrow
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>列表控制 - 开关切换</title>
  <link rel="stylesheet" href="../assets/mdui-v0.4.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="../assets/mdui-v0.4.2/js/mdui.min.js"></script>
</body>
</html>
CSS

    
JavaScript