#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>
我要做一個(gè)關(guān)閉按鈕,但是不知道為什么不起作用???誰(shuí)能幫我一下,非常簡(jiǎn)單,~~~~?。。?!
Zhenlei
2015-01-30 20:48:10