我一直在做一些與HTML的東西,我需要有幾列。我知道如何使他們成爲他們工作的基礎。但是,我有一定的問題。我需要有3個頂部有圖像的列,然後是底部的文本。但是,如果瀏覽器調整大小,底部的文本不能流入下一列 - 只需要上下調整。我至今:特定列
body {
background-color: white;
font-family: times, serif;
color: black;
}
div {
display: flex;
margin: 50px;
flex-wrap: wrap;
}
<div>
<div class="first">
<img src="Images/australia_flag.jpg" alt="Australian Flag" title="Australian Flag" height="200" width="300"> text as well </div>
<div class="second">
<img src="Images/brazil_flag.jpg" alt="Brazilian Flag" title="Brazilian Flag"> even more text </div>
<div class="third">
<img src="Images/china_flag.jpg" alt="Chinese Flag" title="Chinese Flag" height="200" width="300"> text again
</div>
</div>
我不同意。使用Bootstrap並不總是最好的解決方案,並且實際上每次需要對齊時都不應該是解決方案。這可以在幾行代碼中完成,而不需要10k的網格系統(如果定製爲最低限度) –