我有一個flexbox充滿圖像,它們都將具有文本頂部的文本。我被困在試圖讓文本響應。文字需要留在div的內部並用圖像調整大小。任何人有任何提示或技巧如何最好地完成這一點?我的完整代碼示例如下鏈接。CSS flexbox中的圖像響應文本
<div class="container">
<div class="flex-row row">
<div class="flex-column">
<div class=" welcome overlay-parent">
<img src="http://placehold.it/548x227">
<div class="overlay-text"><h1>Welcome to My Place</h1></div>
</div>
<div><img src="http://placehold.it/548x459"></div>
</div>
<div class="flex-column">
<div class="flex-row">
<div><img src="http://placehold.it/812x459"></div>
</div>
<div class="flex-row">
<div class="feature-about overlay-parent">
<img src="http://placehold.it/406x227">
<div class="overlay-text"><h2>About Something</h2>
<p>It’s the latest lorem ipsum dolor sit brief intro to the park goes here. ounded in 2016. It’s the latest lorem ipsum dolor sit brief intro to the park goes here. </p> </div>
</div>
<div><img src="http://placehold.it/406x227"></div>
</div>
</div>
</div>
<div class="flex-row row">
<div><img src="http://placehold.it/812x459"></div>
<div><img src="http://placehold.it/548x459"></div>
</div>
</div>
https://codepen.io/enigmas2/pen/ygKmGX
使用媒體查詢來控制字體大小 – ZimSystem
我正朝着@ZimSystem的方向前進,但想看看是否有選項。 – Johanna