플로트가있는 이미지 갤러리를 만들었으므로 모든 것이 잘 작동하지만 이미지의 두 번째 행에 도달하면 문제가 발생합니다. 첫 번째 행에서 이미지 위에 마우스를 가져갈 때마다 두 번째 행 위치의 이미지가 혼란스러워집니다.왼쪽으로 플로트를 사용하여 호버상에서 이미지 위치가 변경됨
여기에 codepen이 있습니다. 는 모든 이미지 위로 가져 가면 시도하고 엉망이되는 방식 번째 행 이미지 참조 .. (내 최근 예술은 codepen하지만 당신은 이미지 위에 마우스를 올려 때마다 아이디어를 얻을에서보다 더 나은 방법 모양) http://codepen.io/anon/pen/ZpGrVA
<html>
<body style="background-color: rgb(242, 242, 242);">
<style>
.middlegallery{
top:250px;
position: absolute;
}
.mainpanel{
left: 50%;
right:50%;
display:block;
padding: 15px;
/*top: 125px;*/
font-size: 16px;
background-color: #f5f5f5;
border: 1px solid #d8d8d8;
line-height: 1.5;
border-radius: 5px 3px 0 0;
position: relative;
font-family: Helvetica, Arial, sans-serif;
}
.gallery-image{
margin:5px;
border: 1px solid #ccc;
zoom: 1;
float:left;
cursor:pointer;
position:relative;
}
img:hover{
border:1px solid #777;
}
img{
}
.middlewrapper{
margin:0 auto;
width:95%;
padding-top: 125px;
}
</style>
<div class="middlewrapper">
<div class="col-sm-6">
<div class="mainpanel"><h5 style="font-family: Verdana, serif; text-align: left; position: relative; top: 3px;"><i class="fa fa-picture-o" aria-hidden="true"></i> Recent arts</h5></div>
</div>
<div class="middlegallery">
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
<div class="gallery-image">
<img src="http://placehold.it/240x220">
</div>
</div>
</div>
당신은 부트 스트랩을 사용하는 이유는 실제로 레이아웃 그리드 일명, 그것을 사용하는 대신이 부동의 물건을위한 주요 이유 중 하나를 활용? –
@ChrisW. 예를 들어 줄 수 있습니까? –
물론 "google"부트 스트랩 그리드 튜토리얼 "또는"부트 스트랩 이미지 갤러리 "등 많은 예제 amigo가 있습니다. :) –