Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html lang="zh-cn">
<head>
  <meta charset="UTF-8">
  <title>CSS.supports() 测试</title>
</head>
<h1>检测浏览器是否支持 CSS.supports()</h1>
<body>
  <script>
  var supports3d = CSS.supports("(transform-style: preserve-3d) or (-moz-transform-style: preserve-3d) or (-webkit-transform-style: preserve-3d)");
  if (supports3d) {
    alert('我支持啦,感觉自己萌萌哒(・ω・)');
  } else {
    alert('伦家还不支持捏(▔□▔)');
  }
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers