我有这个开发website。如果单击图像,它将弹出照片滑块(使用photoswipe)。有没有办法让图像占据整个视口?我试过height: 100vh, width: auto
,但没有运气
你可以随时申请:
.container {
position: fixed;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
z-index: 1000;
}
对容器来说,它会完成它,但在正确构造东西方面却相当严重。