[英]lightbox image size restriction
I am using this lightbox and I was wanting to know is there away to scale the image to a particular size - I have tried max-height and max-width but they are not setting correctly. 我正在使用此灯箱 ,我想知道是否可以将图像缩放到特定大小-我尝试了max-height和max-width,但是它们设置不正确。
The lightbox is based on the tractor images 灯箱基于拖拉机图像
You could try 你可以试试
#lightbox img {
border: none;
width: 800px;
height: 450px;
}
if you want all images to be same size and aspect ratio 16:9 如果您希望所有图像都具有相同的尺寸和宽高比16:9
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.