我正在用 ionic 和 angularJS 做一个应用程序,我试图让我的栏脚不与最后的少数内容重叠,所以内容必须完成显示,那么,页脚是最后没有重叠的东西,我必须申请哪个属性?因为我已经尝试了所有关于 position
属性的方法,但没有一个对我有用,所以我在这里给你留下一张现在正在发生的事情的图像:
http://s23.postimg.org/b9uhjq0ej/Captura.png
如您所见,列表的最后一项与页脚重叠。 谢谢大家的回答和帮助! :)
--已编辑(提供代码):
<ion-content>
<ion-list class="pagina">
<a class="item item-thumbnail-left" ng-repeat="poblacio in poblacions" href="#/app/ambFiltreActivitats" ng-click="doGuardarPoblacio(poblacio.title)">
<img style="width:50px; height:auto; margin-left: 60px;" ng-src="{{poblacio.url}}"/>
<br/><br/>
<b>{{poblacio.title}}</b>
</a>
</ion-list>
</ion-content>
<div class="bar bar-footer">
<div class="title"></div>
</div>
不,我没有 CSS 属性,只有背景色属性,如果我应用 position: relative
,页脚甚至不显示,并且使用 absolute
或 固定
它与链接照片中的相同。
最佳答案
将“has-footer”添加到 <ion-content>
可以解决这个问题。
关于javascript - 避免 AngularJS 栏脚重叠内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31473999/