Blurry text with css scaled iframe in Chrome

穿精又带淫゛_ 提交于 2020-01-25 17:25:16

问题


This question, there is a point that is different from the "css scale chrome" other questions. iframe is moved to a specific location, text will be displayed correctly. And, when moved to a position where there is a problem again, the text will be blur.

Move will be executed position of jquery.

Why iframe is moved, text will be displayed correctly?

screen shots. http://ggamagidev.blogspot.com/2013/12/blurry-text-with-css-scaled-iframe-in.html

It is applied to the iframe, but they failed.

// transform: "translateZ(0)",
// "-webkit-transform": "translateZ(0)",
// "-webkit-text-stroke": "0.35px",
// "transform-style": "preserve-3d",
// "-webkit-transform-style": "preserve-3d",
// "transform-style": "flat",
// "-webkit-transform-style": "flat",
// "font-smooth":"never",
// "-webkit-perspective":1000,
// "backface-visibility": "hidden",
// "-webkit-backface-visibility":"hidden",

回答1:


Try if font blurred in chrome.

body {-webkit-text-stroke: 0px!important;-webkit-font-smoothing: antialiased !important;}



回答2:


Setting z-index to auto for all parent containers of iframe resolves issue with blurring despite from the first look it was related to transform scaling. The main point is exclude intersection of elements with the same z-index (they are caused annoying blurring effect in case iframe and scaling transform)

{z-index: auto;}


来源:https://stackoverflow.com/questions/20706279/blurry-text-with-css-scaled-iframe-in-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!