角状材料标签与铬的页脚重叠

时间:2015-11-11 03:59:11

标签: angularjs google-chrome angularjs-material

当标签内容大于窗口大小时,使用角度材料及其标签组件,它似乎与页脚重叠 - 一个md工具栏。 它似乎只发生在chrome中,而不是在firefox中。 这是plunker - 代码:

<!DOCTYPE html>
<html ng-app="plunker">

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <link data-require="angular-material@master" data-semver="0.10.1" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.10.1/angular-material.min.css" />
    <link rel="stylesheet" href="style.css" />
    <script data-require="angular.js@1.4.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.js" data-semver="1.4.7"></script>
    <script data-require="angular-aria@1.4.0" data-semver="1.4.0" src="https://code.angularjs.org/1.4.0/angular-aria.js"></script>
    <script data-require="angular-animate@*" data-semver="1.4.3" src="https://code.angularjs.org/1.4.3/angular-animate.js"></script>
    <script data-require="angular-material@0.10.1" data-semver="0.10.1" src="https://cdnjs.cloudflare.com/ajax/libs/angular-material/0.10.1/angular-material.min.js"></script>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <script src="app.js"></script>
  </head>

  <body ng-controller="MainCtrl" layout="column">
    <md-toolbar>
      <div class="md-toolbar-tools">
        My favorite dive sites
      </div>
    </md-toolbar>
    <div flex>
      <md-content>
        <md-tabs md-border-bottom md-dynamic-height>
          <md-tab label="tab one">
            <md-content class="md-padding">
              <h1 class="md-display-1">The Title</h1>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
              <p class="md-body-1">
                Just a proposition
              </p>
            </md-content>
          </md-tab>
          <md-tab label="tab two"></md-tab>
        </md-tabs>
      </md-content>

    </div>
    <md-toolbar>
      <div class="md-toolbar-tools">
        Younderwater, 2015
      </div>
    </md-toolbar>
  </body>

</html>

我做错了吗? 任何帮助真的很感激

1 个答案:

答案 0 :(得分:1)

更新你的&lt; div flex&gt;上的css致:

flex: 1 0 auto;