我正在使用通知系統,我希望我的通知從右下角開始,然後堆疊到右上角。我怎麼做?像我如何強制它在屏幕底部開始?從下往上堆棧元素
當前CSS:
#notifications {
width: 280px;
right: 0;
bottom: 0;
float: right;
position: fixed;
z-index: 9999;
height: 100%;
top: 40px;
margin-right: 3.5px;
}
.notification {
font-size: 12px;
width: 270px;
min-height: 20px;
background: #000;
color: #FFF;
border-radius: 6px;
padding-left: 10px;
padding-top: 2.5px;
padding-bottom: 2.5px;
margin-top: 10px;
opacity: 0.8;
}
看起來像你有它減去位置:固定; – Keith
贊這個http://jsfiddle.net/j08691/2TdCx/1/? – j08691