Jquery mobile 页脚中的网格-Jquery Mobile

Jquery mobile 页脚中的网格-Jquery Mobile,jquery-mobile,Jquery Mobile,我正在尝试在页脚部分的网格中实现按钮布局。但我不确定为什么按钮没有按照文档正确展开 <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" /> <script src="http://code.jquery.com/jquery-1

我正在尝试在页脚部分的网格中实现按钮布局。但我不确定为什么按钮没有按照文档正确展开

<!DOCTYPE html> 
<html>

<head>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
    <script>

    </script>
</head> 
<body> 
    <div class="ui-bar" data-role="footer" data-position="fixed">
        <div class="ui-grid-a"> 
            <div class="ui-block-a"><a href="http://google.com" data-role="button" >Google</a></div>
            <div class="ui-block-b"><a href="http://google.com" data-role="button" >Google</a></div>
        </div>
    </div>
</div>
</body>
</html>
这是我的提琴样品

不确定为什么按钮不能正确展开,并占据每个网格的50%。它只保留在侧面


新手Jquery手机开发者。

一些CSS哦…认为在查看文档时,即使在页脚也可以使用相同的功能。因此,当网格同时应用于页脚和页眉时,会有特殊的处理。谢谢,你是说导航栏?工具栏内的按钮是内联块显示的,因此它们不会占用可用位置。欢迎使用StackOverflow!添加对答案代码功能的简要说明对其他人理解非常有帮助
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" />
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<style>
  .full-width-buttons .ui-btn {
    display: block;
  }
</style>
</head>
<body>
  <div data-role="page">
    <div data-role="footer" class="ui-bar" data-position="fixed">
          <div class="ui-grid-a full-width-buttons">
                <div class="ui-block-a"><a href="#" data-role="button">Prev</a></div>
                <div class="ui-block-b"><a href="#" data-role="button">Next</a></div>    
          </div>
    </div>
  </div>
</body>
</html>