每当我放入一个简单的页脚栏时,它不会停靠在屏幕底部,而是浮动在屏幕中间的中间位置。我的代码尽可能简单:
<body id="mainBody" onload="initialize()">
<div id="mainPage" data-role="page" data-theme="e">
<div data-role="header">
<!-- <img src="headerlogo.png" />-->
<br />
<p style="text-align:center">To begin searching for samples, select one of the search methods from the following table.</p>
</div>
<div data-role="content">
<a data-role="button" data-theme="a" href="useMyLocation.html">Use My Location</a>
<a data-role="button" data-theme="a" href="InputCoordinates.html">Input Coordinates</a>
<a data-role="button" data-theme="a" href="selectRegion.html">Select Region</a>
</div>
<div data-role="footer">
<h1>Hey guys!</h1>
</div>
</div>
</body>
这会产生一个漂亮的标题和三个漂亮的按钮链接,然后是屏幕中间的页脚!为什么它会出现在那里而不是附加到视口的底部?