本文实例讲述了js实现div在页面拖动效果。分享给大家供大家参考,具体如下:
<style type=text/css>
body {
margin: 0px;
}
#div1 {
display: none;
position: absolute;
z-index: 1000;
height: 100%;
width: 100%;
background: #000000;
filter:Alpha(opacity=30);
}
#div2 {
display: none;
position: absolute;
height: 100%;
width: 100%