HTML
CSS
JavaScript
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Tab 选项卡 - 含背景色</title>
  <link rel="stylesheet" href="https://cdn.w3cbus.com/library/mdui/1.0.2/css/mdui.min.css"/>
</head>
<body class="mdui-theme-primary-indigo mdui-theme-accent-pink">

  <div class="mdui-container">
    <div class="mdui-tab mdui-color-theme" mdui-tab>
      <a href="#example7-tab1" class="mdui-ripple mdui-ripple-white">
        <i class="mdui-icon material-icons">phone</i>
        <label>recents</label>
      </a>
      <a href="#example7-tab2" class="mdui-ripple mdui-ripple-white">
        <i class="mdui-icon material-icons">favorite</i>
        <label>favorites</label>
      </a>
      <a href="#example7-tab3" class="mdui-ripple mdui-ripple-white">
        <i class="mdui-icon material-icons">perm_contact_calendar</i>
        <label>nearby</label>
      </a>
    </div>
  </div>

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

  
JavaScript