2014-10-07 66 views
2

問題上右上角出現,警報使用UI-bootstap,引導與Angularjs

我希望我的警報出現在右上角。我將如何使用引導程序?目前我的HTML看起來像這樣。

<div class="notification"> 
     <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="alert.close()">{{alert.msg}}</alert> 
     </div> 

我正在使用ui-bootstrap進行角度和微博操作。

+0

https://developer.mozilla.org/en-US/docs/Web/CSS/position – Phil 2014-10-07 04:11:33

+0

感謝你的鏈接,學習CSS – GeekOnGadgets 2014-10-07 04:22:44

回答

4

對於像我:)

.notification{ 
     position: fixed; 
     top: 10em; 
     right: 10em; 
    }