2017-05-09 44 views
0

有沒有辦法將自舉輪播標題重新定位到圖片的最底部? CSS如下:輪播標題最低排名

.carousel-caption { 
    max-width: 100%; 
    width:100%; 
    background:rgba(0,0,0,0.5); 
    position: absolute; 
    left: 0; 
} 
+0

檢查[w3School(https://www.w3schools.com/bootstrap/bootstrap_carousel.asp) – Durga

+1

你試過'底部:0; '? – Swellar

回答

0

您可以使用bottom:0px

.carousel-caption { 
    max-width: 100%; 
    width:100%; 
    background:rgba(0,0,0,0.5); 
    position: absolute; 
    left: 0; 
    bottom: 0px; 
}