我正在尝试在 Internet Explorer 8 中缩放带有 anchor 标记的 div。div 是:
<div class="toScale">
<a href="http://www.google.com">Google</a>
</div>
为了实现这一点,我为 div 使用了以下样式:
.toScale {
filter: progid:DXImageTransform.Microsoft.Matrix(M11=2, M12=0, M21=0, M22=2, SizingMethod='auto expand');
}
缩放正确(两倍大)但有效边界框保持不变,就好像缩放没有完成一样。因此,为了单击 anchor ,我必须单击 anchor 未缩放时所在的区域,而不是缩放后的文本。
我为 div 尝试了不同的定位样式,甚至为过滤器使用了不同的语法(带有 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=2, M12=0, M21=0, M22=2, SizingMethod='auto expand')"
) 但没有解决这个问题。
在 Internet Explorer 7 中,相同的代码可以正常工作而不会出现此问题。
有没有人知道什么可以解决 Internet Explorer 8 中的这个问题?
谢谢。
最佳答案
this mayfix
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="X-UA-Compatible" content="IE=9;IE=8" />
关于html - Internet Explorer 8 规模问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10818089/