简体   繁体   English

Next.js + Tailwind 网站放大 firefox

[英]Next.js + Tailwind Website Zoomed In in firefox

I have developed website using Next.js and Tailwind CSS. The website while testing appears to be zoomed In in Firefox but its looking fine in all other browsers.我使用 Next.js 和 Tailwind CSS 开发了网站。测试时网站似乎在 Firefox 中放大,但在所有其他浏览器中看起来都很好。

When the screen is broguht to 80%, then the website looks fine in firefox. What's the solution to this problem so that the website should appear same in all browser.当屏幕显示为 80% 时,该网站在 firefox 中看起来很好。这个问题的解决方案是什么,以便该网站在所有浏览器中显示相同。

Thanks谢谢这是firefox中的网站图片 这是 Chrome 中的网站图片

try to use css reset in the globalStyle.css file.尝试在 globalStyle.css 文件中使用 css 重置。 just copy the reset from the following Link .只需从以下链接复制重置。 that should resolve your problem那应该可以解决你的问题

CSS Zoom property was used on the product site to set the layout. CSS 产品站点使用缩放属性设置布局。 Avoid using this property as far as you can because firefox does not supports this property.尽量避免使用该属性,因为 firefox 不支持该属性。

For anyone still looking for the solution, add the below in your head block.对于仍在寻找解决方案的任何人,请在您的头部块中添加以下内容。 It did the trick for me.它对我有用。

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"></meta>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM