2013-10-08 119 views
0

我在这里的图像大小问题:在使图像http://goo.gl/UYUuJL规模,使图像高度填充格“鼠兔级”的100%比例。我很抱歉,这已在其他地方得到解答。图像缩放问题

这里的CSS:×2921(也应该是腿之上大象)1364:

.pika-stage { 
     position: relative; 
     text-align: center; 
     height: auto; 
     max-height: 410px; 
     overflow: hidden; 
     background: #000; 
    } 

    .pika-stage img { 
     height: 100% !important; 
     position: relative; 
    } 

就拿顶最右边的缩略图在这个画廊:原始大小。一旦缩略图被点击它不会缩放图像足以胜任比例内的“鼠兔级” DIV整个事情。这种缩放比例是否可以通过媒体图像大小来改写?任何帮助将非常感激。

感谢

+0

请检查您的形象在你的SCR文件夹中。 – vishalkin

+0

你说的是[这里](http://testsite.brentthelendesign.com/wp-content/uploads/2013/08/Ak-Ship-on-Forearm-520x410.jpg)被重复的图像? – vishalkin

+0

该图像不会重复,它是拼贴类型的照片。我试图让图像扩展到div区域。我不介意在一些更垂直的图像上是否有黑色背景。 – beetheezy

回答

0

定义height: 100%.pika-stage,而不是height: auto;

.pika-stage {position: relative; text-align:center; height:100%; max-height:410px; overflow:hidden; background: #000;}