Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html> 
  <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>IE8+ hasLayout 测试 by 一丝</title>
    <style type="text/css">
      div{
        zoom:1;
      }
      h2{
        overflow: hidden;
      }
    </style>
    <script type="text/javascript"> 
      window.onload = function () { 
        alert('div(zoom:1) 的 hasLayout = '+ document.getElementsByTagName('div')[0].currentStyle.hasLayout); 
        alert('h2 的 hasLayout = '+ document.getElementsByTagName('h2')[0].currentStyle.hasLayout);
      }; 
    </script> 
  </head> 
  <body>
    <h2>IE8+ hasLayout 测试 by 一丝</h2>
    <div> 
      Hello World! 
    </div> 
  </body> 
</html> 
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers