<style>
#detailbox { border: solid 1px #EEE; background:#F7F7F7; margin:20px; padding:10px; display:none;}
      </style>

 

      <a style="cursor:pointer" onclick="show('detailbox')">(详情)</a>

      <div >内容</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>

相关文章:

  • 2021-07-26
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
相关资源
相似解决方案