简单的显示关闭
<style>
#detailbox { border: solid 1px #EEE; background:#F7F7F7; margin:20px; padding:10px; display:none;}
</style>
<a style="cursor:pointer" onclick="show('detailbox')">(详情)</a>
<div id="detailbox">内容</div>
<script>
function show(id){
var elem = document.getElementById(id);
if(elem.style.display != 'block'){
elem.style.display = 'block';
}else{
elem.style.display = 'none';
}
}
</script>