2013-10-08 122 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;}