<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
<!--
 body{font-size:12px;}
 h4,ol{ margin:0;padding:0; border-bottom:1px solid #369;}
 li{ list-style-type:none;}
 #putUp{ background:#999; border:1px solid #369; color:#333;width:500px;}
 #putUp ol{ display:none;}
 .item{width:500px; background:#c30;}
 .item h4{ background:#D1DAEF; text-indent:10px;}
 .item li{ height:30px; line-height:30px; overflow:hidden;color:#fff; padding:0 10px;} 
-->
</style>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#putUp ol:last").slideDown("normal");
$("#putUp h4").click(function(){
  $("#putUp ol").slideUp("normal");
  $(this).next("ol").slideDown("normal");
 }
);

});
</script>

</head>

<body>
<div id="putUp">
      <div class="item">
        <h4>上</h4>
        <ol>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
        </ol>
      </div>
      <div class="item">
        <h4>下</h4>
        <ol>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
        </ol>
      </div>
      <div class="item">
        <h4>下</h4>
        <ol>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
            <li>内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</li>
        </ol>
      </div>
</div>
</body>
</html>

 posted on 2008-09-02 10:11  刘卿  阅读(1117)  评论(1编辑  收藏  举报