나는이 작업을 수 백만 번 해봤지만 왜 지금은 작동하지 않는지 알 수 없습니다. 나는 똑같은 크기의 4 개의 이미지를 수평으로 일직선 상에 놓으려고 노력하고 있지만, 서로 약간 대각선으로 보인다. 여기 CSS 인라인 블록 이미지가 수평으로 정렬되지 않습니다.
내 HTML<div class="homepage_images">
<a href="http://one-event.org.uk/the-event/activities/for-18s-under/"><img src="http://one-event.org.uk/wp-content/uploads/2013/12/CHILDREN.jpg" alt="" width="300" height="228" class="alignnone size-full wp-image-182" /></a>
<a href="http://one-event.org.uk/the-event/activities/"><img src="http://one-event.org.uk/wp-content/uploads/2013/12/ACTIVITIES-COVER.jpg" alt="ONE 2014 WEBSITE REV2" width="300" height="228" class="alignnone size-full wp-image-181" /></a>
<a href="http://one-event.org.uk/the-event/streams/"><img src="http://one-event.org.uk/wp-content/uploads/2013/12/STREAMS-COVER.jpg" alt="ONE 2014 WEBSITE REV2" width="300" height="228" class="alignnone size-full wp-image-184" /></a>
<a href="http://one-event.org.uk/the-event/speakers/"><img src="http://one-event.org.uk/wp-content/uploads/2013/12/SPEAKERS-COVER.jpg" alt="ONE 2014 WEBSITE REV2" width="300" height="228" class="alignnone size-full wp-image-183" /></a>
</div>
그리고 내 CSS입니다 :
.homepage_images {
display:block;
}
.homepage_images img{
display:inline-block;
float:left;
width:240px;
opacity:0.8;
}
그리고 여기 사이트에 대한 링크입니다, 잘못 정렬되는 이미지는 페이지 http://www.one-event.org.uk
의 아래쪽에 있습니다
질문에 게시 된 코드가 실제 사이트의 코드와 일치하지 않습니다. – EyalAr