嗨,大家好,我正在試圖讓我的按鈕在bootstrap 3重疊我的形象,我明白z-index 1的使用,但我似乎無法讓它工作。獲取按鈕鼠標懸停在圖像
HTML:
.btn-warning {
color: #fff;
background-color: rgba(255, 198, 0, 0.9);
border: 0;
padding: 20px;
border-radius: 26px;
line-height: 0.428571;
}
.aboutpic {
margin-bottom: 19px;
}
<div class="aboutpic">
<img src="//via.placeholder.com/350x150" class="img-responsive">
<button type="button" class="btn btn-warning">Download CV</button>
</div>
Dosent在現在都顯示按鈕 – RonTheOld
到這裏看看:https://codepen.io/lauraeddy/pen/KXEwOW – Laura
纔是好我拿出頂部,左側和改造當它在瀏覽器縮小的時候,它在中間顯示正確,並且響應很快:) – RonTheOld