저는 HTML을 처음 사용하며 가운데에 3 개의 이미지 (나란히 표시됨)가있는 웹 페이지를 만들려고합니다. 여기 코드 나는이된다캡션 및 설명이있는 세 개의 이미지를 가운데에 배치하는 방법은 무엇입니까? HTML
<center>
<figure style="display:inline-block;text-align:center;top:350px">
<div style="width:275px; font-size:80%;margin:20px;text-align:center;display:inline-block">
<img src="images/website-main1.jpg" style="margin-bottom:10px" width="275px" height="175px" />
<figcaption style="text-align:center">This is an example of a super long caption that will make the images offset</figcaption>
<div style="text-align:left">
<p>description example</p>
</div>
</div>
<div style="width:275px; font-size:80%;margin:20px;text-align:center;display:inline-block">
<img src="images/website-main6_1.jpg" style="margin-bottom:10px" width="275px" height="175px" />
<figcaption style="text-align:center">First image</figcaption>
<div style="text-align:left">
<p>description</p>
</div>
</div>
<div style="width:275px; font-size:80%;margin:20px;text-align:center;display:inline-block;">
<img src="images/a1_orig.jpg" style="margin-bottom:10px" width="275px" height="175px" />
<figcaption style="text-align:center">First image</figcaption>
<p>description</p>
</div>
</figure>
</center>
이 코드는 이미지를 생성하고이를 중심으로하지만, 자막이나 설명이 동일하지 않은 경우, 이미지가 (EX를 상쇄하십시오 만약 가장 왼쪽의 이미지에있는 캡션은 매우 어리 석고 그 이미지는 다른 두 개의 이미지보다 높게 나타납니다). 이 문제를 해결할 수있는 방법이 있습니까?
. 당신이 더 높은 것을 의미합니까? 모든 이미지의 상단을 정렬 하시겠습니까? – JulianSoto