#sideBar{ width:400px; height:300px; position: fixed; right: 0px; bottom: 0px; border: 1px solid red;} </style> <script type="text/javascript"> window.onLoad = function() { var TipBox = document.getElementById("sideBar"); var CloseBtn = document.getElementById("CloseBtn"); CloseBtn.onClick =function(){TipBox.style.display="none";} } </script></head><body><div id="sideBar"> <div class="pic"> <div class="whatNm"><a href="" id="CloseBtn">a</a></div> </div></div>
添加回答
举报
0/150
提交
取消