googleapis中的jquery lib导致错误:属性的值无效:缩放

jet*_*mms 2 ajax jquery zoom

为什么以下代码块中的第5行给出了"属性的无效值:缩放"错误?我在Opera 11.62中运行它并在Dragonfly中捕获错误.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script type="text/javascript">
      // google chart built here from JSON pulled through php call
    </script>
  </head>

  <body>
  </body>
</html>
Run Code Online (Sandbox Code Playgroud)

谢谢.

s.w*_*dit 6

Internet Explorer 5.5及更高版本支持非标准zoomCSS属性.它设置元素的放大比例.

目前还没有与此属性相当的CSS3.

所以你在Opera中有一个错误,因为它不知道这样的属性.此属性仅适用于IE.

在你的情况下,这个Opera控制台错误是由jQuery库产生的 - jQuery知道 zoom属性并尝试使用它.

在这里,您可以找到有关此问题的更详细说明以及zoom属性的浏览器兼容性表.