div.style.display="";//显示返回div上的数据?return div.innerHtml ? div.innerText?

解决方案 »

  1.   

    div上有个checkboxlist和确认按钮,用户选好item后点确认就关闭div层,并把选好的数据返回去,现在最重要的是我第一步弹出div还没实现,我要的效果是弹出而不是隐藏后再显示
      

  2.   

    <!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=gb2312" />
    <title></title>
    <script type="text/javascript">
     function cd(_this)
     {
      _this.style.display ="";
     }
     function dd(_this)
     {
      _this.style.display ="none";
     }</script>
    </head>
    <body>
    <div onclick="cd(this.nextSibling)">点击</div>
    <div style="display:none; position:absolute; width:300px; height:300px; z-index:1000; top:2px; left:3px;background:#ff0" ><span  onclick="dd(this.parentNode)">X</span>
    </div>
    </body>
    </html>