gpt4 book ai didi

html - DXIMageTransform.Microsoft.Matrix 在 IE9 中模糊

转载 作者:太空狗 更新时间:2023-10-29 16:02:02 25 4
gpt4 key购买 nike

我注意到在 IE9 中使用矩阵 DXIImageTransform 会对旋转的文本进行像素化。我在 IE8 或 7 中没有这个问题。通常我会在 IE9 中使用 css3 选项,但由于我无法控制的原因,页面以怪癖模式呈现(有效的 html5 iframe 嵌入在没有文档类型的第 3 方页面中)

这是我正在使用的代码:

<!--Looks like crap but is my only option in quirks mode-->
<span style="position:absolute;
filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand',
M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);">
Does this make my butt look pixelated?
</span>

在 IE8 中,旋转后的文本是平滑的,但在 IE9 中它非常像素化。与此进行比较(在怪癖模式下不起作用)

<!-- looks great but doesn't work in quirks mode-->
<span style="position:absolute; top:150px; -ms-transform: rotate(-45deg);">
Does this make my butt look pixelated?
</span>

要查看实际效果,请在 IE9 中查看此 fiddle http://jsfiddle.net/U4CCD/3/

我的问题,我如何在 IE9 中旋转文本,在怪癖模式下,它看起来并不全是像素化和模糊的。为什么矩阵变换在 IE9 中开始变得糟糕?

如果您足够幸运,没有运行 IE9,这就是我所看到的。更清晰的示例是它在 IE8 中的外观以及使用 css3 转换时的外观。

IE9 sucks

最佳答案

最终我发现我目前的配置无法做到这一点。但是,我能够通过将我的有效 html5 页面包装在一个对象中然后嵌入到 iframe 中来解决这个问题。在 IE 9 中,这似乎允许我的页面以标准模式在 iframe 中呈现,并使用看起来干净的 SVG 转换。我创建了以下包装器 aspx 脚本:

<%@ Page Language="C#" %>

<%
string url = "app/path";
if(!String.IsNullOrEmpty(Request.QueryString["path"]))
url = HttpUtility.UrlDecode(Request.QueryString["path"]);

url += "?i=1";
if(!String.IsNullOrEmpty(Request.QueryString["id"]))
url += "&id=" + Request.QueryString["id"];

if(Request.Browser.Browser!="IE"||Request.Browser.MajorVersion!=9) {
Response.Redirect(url);
}
url += "&quirky=1";
%>
<html>
<head><title></title>
</head>
<body style="width:100%; height:100%; margin:0; padding:0; overflow:hidden;">
<object type="text/html" data="<% =url %>" style="overflow:hidden; width:100%; height:100%"></object>
</body>
</html>

关于html - DXIMageTransform.Microsoft.Matrix 在 IE9 中模糊,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13351339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com