Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="absolute 破坏性">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
    <div class="con">
       wozaiqianmian
       <div class="son"></div>      
<script src="https://code.jquery.com/jquery-2.0.3.js"></script>
    </div>
  
  <button>绝对定位切换</button>
</body>
</html>
 
$('button').click(function() {
     $('.son').toggleClass('absolute');
  
})
Output

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

Dismiss x
public
Bin info
GeorgeLu2018pro
0viewers