#c { width:300px; height:200px; background-color:#d0d0d0; } #a { width:40px; height:20px; background-color:#fff; margin:0 auto; } #b { width:100px; height:40px; background-color:red; /*border-radius:20px; */ text-align:center; margin:50px auto; }
简单的实现点击div的隐藏和显示的切换