CSS style:
. anlibox{width:1170px;position:relative; left:1.5%; top:15%; margin:0 Auto;}
. anli1{width:270px;}
. anli2{width:278px;}
. anli3{width:322px;}
. anli4{width:299px;}
. anli1 img,. anli2 img,. Anli3 img,. anli4 img{transition:transform 0.5s;-webkit-transition:-webkit-transform 0.5s;/* Safari */}
. Anli1 img:hover,. Anli2 img:hover,. Anli3 img:hover,. Anli4 img:hover{transform:translate (0px,-10px);-ms-transform: Translate (0px,-10px); /* IE 9 */-webkit-transform:translate (0px,-10px); /* Safari and Chrome */}
HTML code:
<ul class= "Oh pt10 pb50" >
<li class= "fl anli1" > <a rel= "nofollow" href= "photo.html" ></a> < A rel= "nofollow" href= "photo.html" ></a></li>
<li class= "fl anli2" > <a rel= "nofollow" href= "photo.html" ></a> < A rel= "nofollow" href= "photo.html" ></a></li>
<li class= "fl anli3" > <a rel= "nofollow" href= "photo.html" ></a> < A rel= "nofollow" href= "photo.html" ></a></li>
<li class= "fl anli4" > <a rel= "nofollow" href= "photo.html" ></a> < A rel= "nofollow" href= "photo.html" ></a></li>
</ul>
The mouse points to the picture and moves up