[英]NextJs Image does not show on Safari
I am using NextJs for my website.我在我的网站上使用 NextJs。 Here is the code I'm using for showing Images这是我用于显示图像的代码
<Image
src={`/p1.png`}
layout={"fill"}
objectFit="contain"
objectPosition="center"
alt={"publication image"}
/>
This image is visible on all browsers except Safari.此图像在除 Safari 之外的所有浏览器上都可见。 How can I make it visible on Safari as well?我怎样才能让它在 Safari 上也可见? Thanks in advance提前致谢
I got the issue fixed.我解决了这个问题。 The image container did not have position set as relative图像容器没有将位置设置为相对位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.