[英]Proportionally Resizing without extending to 100% width and height
I've build an ad with an click tag.我制作了一个带有点击代码的广告。 Everything works fine - the images are scaling proportionally but is there a way for the container not to fill 100% of width/height and still be scaling?
一切正常——图像按比例缩放,但有没有办法让容器不填充 100% 的宽度/高度并仍然缩放?
Preview: https://craftads.de/hosting/stack_test5/预览: https://craftads.de/hosting/stack_test5/
Wetransfer Code: https://wetransfer.com/downloads/5b7b21ccd2a0f535cfcb22146ae5e41b20210823135155/edf6cd Wetransfer代码: https://wetransfer.com/downloads/5b7b21ccd2a0f535cfcb22146ae5e41b20210823135155/edf6cd
I would like that only the visible part to be clickable.我希望只有可见部分是可点击的。
Visual representation:视觉表现:
This is what I would like to achieve这就是我想要实现的
Thanks for the help!谢谢您的帮助!
After a lot of trial and error I think I've found a solution:经过大量的反复试验,我想我找到了解决方案:
html, body {
width: 100%;
height: 100vh;
margin: 0px;
max-width: 50vh;
min-width: 500px;
min-height: 1000px;}
Does that make any sense haha?有意义吗哈哈
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.