Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 材料设计Lite固定选项卡菜单标题未对齐?_Html_Css_Navbar_Material Design Lite - Fatal编程技术网

Html 材料设计Lite固定选项卡菜单标题未对齐?

Html 材料设计Lite固定选项卡菜单标题未对齐?,html,css,navbar,material-design-lite,Html,Css,Navbar,Material Design Lite,尝试使用带有固定选项卡的菜单布局示例时,使用Googl'es MDL: 汉堡包菜单旁边的“标题”并不像示例中那样水平对齐 <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Material Design Lite --> <script src="https://storage.goog

尝试使用带有固定选项卡的菜单布局示例时,使用Googl'es MDL:

汉堡包菜单旁边的“标题”并不像示例中那样水平对齐

<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Material Design Lite -->
    <script src="https://storage.googleapis.com/code.getmdl.io/1.0.6/material.min.js"></script>
    <link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.6/material.indigo-pink.min.css">
    <!-- Material Design icon font -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  </head>
  <body>
    <!-- Simple header with fixed tabs. -->
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header
                mdl-layout--fixed-tabs">
      <header class="mdl-layout__header">
        <div class="mdl-layout__header-row">
          <!-- Title -->
          <span class="mdl-layout-title">Title</span>
        </div>
        <!-- Tabs -->
        <div class="mdl-layout__tab-bar mdl-js-ripple-effect">
          <a href="#fixed-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
          <a href="#fixed-tab-2" class="mdl-layout__tab">Tab 2</a>
          <a href="#fixed-tab-3" class="mdl-layout__tab">Tab 3</a>
        </div>
      </header>
      <div class="mdl-layout__drawer">
        <span class="mdl-layout-title">Title</span>
      </div>
      <main class="mdl-layout__content">
        <section class="mdl-layout__tab-panel is-active" id="fixed-tab-1">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
        <section class="mdl-layout__tab-panel" id="fixed-tab-2">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
        <section class="mdl-layout__tab-panel" id="fixed-tab-3">
          <div class="page-content"><!-- Your content goes here --></div>
        </section>
      </main>
    </div>
  </body>
</html>

标题
标题

您有什么样的演示要展示吗?小提琴还是什么?它在那里工作得很好,但当我把它放到我计算机上的index.html中,然后尝试加载它时就不行了。标题与汉堡不一致。它在本地计算机上为我工作-使用Chrome 47。谢谢尝试。如果可以的话,我会把它的照片贴上去吗