以上方法會產生副作用:增加ion-nav-bar的高度。
終極解決方案:自定義popover的html中在最外層加一個div,然后修改成和ios一樣的樣式。
<div class="my-popover"><ion-popover-view style="padding: 0;margin: 0;background-color: #880015"> <ion-content style="padding: 0;margin: 0;"> <div class="list " style="color: #880015;"> <a class="item " style="background-color: #880015; color: white;text-align: center;" href="" ng-repeat="item in popoverItems" ng-click="popoverMenuClick($index,item)"> {{item}} </a> </div> </ion-content></ion-popover-view></div>新聞熱點
疑難解答