我有页脚,但谷歌 Map 有问题 .
<table class="sortable table table-bordered table-responsive " id="table" ng-show="bsalInfo">
<tbody>
<tr ng-repeat="att in bsalInfo track by $index">
<td>{{att.name}}</td>
</tr>
</tbody>
</table>
启动此脚本我的谷歌 Map
<div class="col-md-12" >
<div id="map" style="width:100%; height: 60%; position: absolute;margin-top: 45px;">
<div id="map"></div>
</div>
</div>
完成此脚本我的谷歌 Map
这个css页脚
footer{
position: relative;
bottom: 0 ;
margin-left: auto;
margin-right: auto;
width: 100%;
}
我的问题在哪里?我的页脚在 Map 上,我希望页脚总是在页面上 . 2当页脚页面上的滚动总是坐下时,无论页面上有多少结果 .
2 回答
我希望您的页脚位于页面底部,但不是 fixed .
HTML
CSS
您似乎没有在代码中显示任何元素
<footer>
. 但如果您希望页脚持久保留在页面底部,请使用position: fixed;
和bottom: 0;
以及其他样式了解它here