aaronson0612 2015-12-26 05:33 采纳率: 33.3%
浏览 1649

如何把Text里的内容通过发送按钮显示到上面的消息栏里

图片说明

信息框
        <div class="panel-body"style="height:auto">
         Panel content
          </div>
       </div>







       <div style="clear:left;height:70px">
         <button type="button" class="btn btn-success" style="float:left">发送消息</button>
         <button type="button" class="btn btn-danger" style="float:right">清空消息</button>
       </div>



  </div>
   <div style="float:right;width:30%;height:500px">   <!-- 这个是显示在线人数的界面(右上)-->


   </div>
   <div  style="width:auto; height:100px;clear:left" >   <!-- 这是输入框(位于底部)-->
   <div class="well well-lg"style="weight:75%;height:auto"><input type="Textbox" value="Text"style="height:auto;width:90%"></div>

   </div>


</div>
  • 写回答

2条回答

  • Go 旅城通票 2015-12-26 06:30
    关注
    
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.4.min.js"></script>
    <div class="panel-body" style="height:auto" id="body">
        Panel content
    </div>
           </div>
    
    
    
    
    
    
    
    <div style="clear:left;height:70px">
        <button type="button" class="btn btn-success" style="float:left" onclick="document.getElementById('body').innerHTML+='<br>'+document.getElementById('txt').value">发送消息</button>
        <button type="button" class="btn btn-danger" style="float:right" onclick="document.getElementById('txt').value=''">清空消息</button>
    </div>
    
    
    
      </div>
    <div style="float:right;width:30%;height:500px">
        <!-- 这个是显示在线人数的界面(右上)-->
    
    
    </div>
    <div style="width:auto; height:100px;clear:left">
        <!-- 这是输入框(位于底部)-->
        <div class="well well-lg" style="weight:75%;height:auto"><input type="text" value="Text" id="txt" style="height:auto;width:90%"></div>
    
    </div>
    
    
    </div>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab实现基于主成分变换的图像融合。
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊