本文介绍了二次DIV没有二次照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我有,我创建了一个,同时显示最近50张左右的照片。


现在,我希望所有照片都显示在同一张照片中大小(虽然它们最初有不同的尺寸,有些是裁剪的,有些是风景,有些是肖像)。


是否可以通过使用CSS来挤压这些照片例如是二次形状而不会使照片变形?因此只有部分照片正在显示,另一部分被屏蔽了?


感谢任何提示!


Stef

解决方案




感谢花儿!是的,也许有不同的方法...事情是,我想在画廊中显示150x150px大小的照片。这意味着只显示部分照片,因为照片的相对大小在很多情况下是3:2而不是1:1。


这个隐藏溢出正是我认为它应该如何运作。但是我不知道怎么...


你能给我一些提示吗?!


非常感谢!



Hi there,

I have a nice collection of photos on my photoblog, for which I created as well an archive, which shows the last 50 or so photos at the same time.

Now, I would like to have the photos displayed all in the same size (although they are originally in different sizes, some cropped, some landscape, some portrait).

Is it possible via the use of CSS to "squeeze" the photos in for example a quadratic shape without deforming the photo? Thus only some part of the photo is being displayed, the other kind of masked?

Thanks for any hints!

Stef

解决方案


Thanks for the flowers! And yes, perhaps there are different approaches... The thing is that I would like to display the photos in the gallery say in 150x150px size. That would mean that only parts of the photos is being displayed, as the relative size of the photos is in many cases 3:2 and not 1:1.

This "hiding the overflow" is exactly what I thought how it should work. But I have no idea how...

Could you give me some hints?!

Thanks a lot!



这篇关于二次DIV没有二次照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 00:20