我使用的是當前引導卡從他們documentation:爲什麼不啓動自舉卡包含圖像?
<div class="card" style="width: 20rem;">
<img class="card-img-top" src="/img/drum-kit-min.png">
<div class="card-block">
<h4>Card title</h4>
<p>Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#">Go somewhere</a>
</div>
</div>
但是,增加我的圖像時溢出的紙牌收納,像這樣:
我試着改變圖像的大小,但無濟於事:
.card-img-to {
width: 10px;
}
我也曾嘗試在其中添加引導程序image-responsive
類。有沒有辦法讓這張圖片對卡片有反應,還是我必須photoshop圖片?
圖響應了我,但其他人做了沒有工作!謝謝。 – YoungCoder
很高興我能幫上忙 – Rahul