简体   繁体   English

CSS 在 Chrome 和 Edge 中转换正常,但在 Firefox 中很难看

[英]CSS transform ok in Chrome and Edge but ugly in Firefox

I am using CSS transformations to zoom in and out in the browser, but it looks ugly in Firefox even though it looks good in Chrome and Edge!我正在使用 CSS 转换在浏览器中放大和缩小,但它在 Firefox 中看起来很丑,即使它在 Chrome 和 Edge 中看起来不错!

Firefox:火狐: 火狐

Edge:边缘: 边缘

Chrome:铬合金: 铬合金

What can I do?我能做什么?

1st check the console and if there any errors solve it. 1st 检查控制台,如果有任何错误解决它。 also try out with也试试

@-moz-document url-prefix() { 
  .class {
     property:value;
  }
}

or或者

 -moz-transform:

it may work它可能工作

Firefox does renders images as good as Chrome and Edge(thumbs up), so for now you can use a image of bigger dimensions and use CSS to fit to shrink into the container(DIV). Firefox 渲染图像的效果与 Chrome 和 Edge 一样好(竖起大拇指),所以现在您可以使用更大尺寸的图像并使用 CSS 来适应缩小到容器(DIV)中。 Then you can use CSS transformations to give zooming effect.然后您可以使用 CSS 转换来提供缩放效果。

Thanks.谢谢。

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

相关问题 CSS 变换适用于 Firefox 但不适用于 Chrome - CSS transform works on Firefox but not on Chrome 为什么SVG图片的CSS大小难以调整(已通过Chrome,Firefox的测试) - Why SVG image gets ugly resize with CSS (Chrome, Firefox tested) CSS shadow在IE / Edge中有效,而在Chrome或Firefox中不可用 - CSS shadow works in IE/Edge not in Chrome or Firefox JQuery CSS转换可在Chrome和Firefox中运行,但不能在IE中运行 - JQuery CSS Transform Working in Chrome and Firefox but Not IE 具有多个属性的css转换适用于Firefox,但不适用于chrome - css transform with multiple attributes works on firefox but not in chrome CSS倾斜和变形会在Chrome和Edge上添加多余的轮廓 - CSS skew and transform adds unwanted outline on Chrome and Edge 转换比例 css 打印时在 Chrome 和 Microsoft Edge 上的工作方式不同 - Transform scale css working different on Chrome and Microsoft Edge When Printing 删除空白(CSS)-Chrome和Safari浏览器正常-Firefox不 - Remove white space (CSS) - Chrome & Safari OK - Firefox NOT 删除CSS box shadow Chrome / Safari,Firefox已经可以了 - Remove CSS box shadow Chrome/Safari, Firefox already ok CSS文本摆动动画不再在Chrome / Firefox上运行,但在Edge上运行 - CSS text wiggle animation no longer works on Chrome/Firefox but works on Edge
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM