[HTML] 纯文本查看 复制代码运行代码

蚂蚁部落

body{background:f6f6f6;}

*{

padding: 0px;

margin: 0px;

font-style: normal;

list-style-type: none;

text-decoration: none;

font-family: "微软雅黑";

border:0 none;

line-height: 24px;

color: #666;

outline: 0px;

font-size: 12px;

}

.fl{

float: left;

}

.fr{

float: right;

}

.oflr{

overflow: hidden;

}

.hide{

display:none;

}

.chatonline{

width: 700px;

margin:0 auto;

border:1px solid #ddd;

border-radius:5px;

}

.chatonline .poptit{

background: #fff;

border-bottom: 1px solid #ddd;

}

.chatonline .poptit h5{color: #666;}

.chatonline .poptit a{

background: url(../images/close.png) no-repeat center!important;

}

.article{overflow: hidden;text-align: left;}

.chatpanel{

width: 399px;

border-right: 1px solid #ddd;

overflow: auto;

padding: 10px 15px 0px;

height: 190px;

}

.ordrifo{width: 240px;background: #f8f8f8;height: 180px;}

.ordrifo ul,.ordrifo li{padding: 0px;}

.chatinfo{padding-bottom: 10px;}

.chatinfo span{color: #999;display: block;}

.chatinfo .text{

border-radius: 5px;

background: #f0f0f0;

padding: 5px 10px;

position: relative;

display: inline-block;

*display: inline;*zoom: 1;

}

.chatinfo .text p{color: #333;}

.chatinfo .arrl{

display: block;

width: 10px;

height: 12px;

position: absolute;

top: 50%;

left: -10px;

margin-top: -6px;

background: url(../images/chat_arrl.png) no-repeat;

}

.isendmsg{text-align: right;}

.isendmsg span{text-align: right;}

.isendmsg .arrr{

display: block;

width: 10px;

height: 12px;

position: absolute;

top: 50%;

right: -10px;

margin-top: -6px;

background: url(../images/chat_arrr.png) no-repeat;

}

.isendmsg .text{background: #43a1f1;}

.isendmsg .text p{color: #fff;}

.typetext{overflow: hidden;clear: both;border-top: 1px solid #ddd;padding: 15px;}

.typetext textarea{width: 558px;height: 40px;border-right:0 none;border-radius: 0px;}

.typetext button{

vertical-align: top;

width: 100px;

height: 48px;

border-radius: 0px;

background: #008cf0;

color: #fff;

}

$(function(){

function datetime(){

var mydate = new Date();

var str = "" + mydate.getFullYear() + "年";

str += (mydate.getMonth()+1) + "月";

str += mydate.getDate() + "日 ";

str += mydate.getHours() + ":";

str += mydate.getMinutes() + ":";

str += mydate.getSeconds();

return str;

}

$(".typetext button").click(function(){

if ($(".typetext textarea").val().length<1) {

alert("请输入内容");

}else{

$(".ichat_mudul .chatinfo p").text($(".typetext textarea").val());

$(".chatinfo .time").text(datetime);

$(".ichat_mudul .chatinfo").clone().appendTo('.chatpanel');

$(".chatpanel").scrollTop( $('.chatpanel')[0].scrollHeight);

$(".typetext textarea").val("");

}

});

})

问题件处理

  • 客户单号:123456
  • 服务商单号:88888
  • 运输方式:FedEx-SP
  • 问题类型:有货无单
  • 处理人:蚂蚁部落
  • 发生时间:2017-03-28 02:12:45

发送

h5聊天页面 jquery_jQuery模拟实现聊天对话框相关推荐

  1. h5聊天页面 jquery_HTML5仿微信聊天界面、微信朋友圈实例代码

    这几天使用H5开发了一个仿微信聊天前端界面,尤其微信底部编辑器那块处理的很好,使用HTML5来开发,虽说功能效果并没有微信那么全,但是也相当不错了,可以发送消息.表情,发送的消息自动回滚定位到底部,另 ...

  2. h5聊天页面 jquery_HTML5仿微信聊天界面、微信朋友圈实例

    /*--聊天编辑器区域*/ var $editor = $(".J__editorText"), editor = $editor[0];var $face = $(". ...

  3. 仿微信、QQ聊天页面软键盘遮挡聊天对话的解决办法

    在刚制作的时候弹起来的软键盘会覆盖聊天记录 类似这样 然后我仔细研究了下代码 原代码: //底部框代码 <view class="cu-bar foot input"> ...

  4. 【uni-app】uni-app实现聊天页面功能——功能篇(下)

    目录 前言 一.聊天框随键盘抬起 思路 代码实现 二.聊天消息列表随着聊天框的增高而滚动到最底部 思路 三.问题 完整代码实现 总结 前言 前面我有写关于如何进行聊天页面布局和实现聊天消息滚动到最底部 ...

  5. webqq的注册登记和聊天页面--运用jsonp跨域

    简介: 我们知道,ajax用于数据交互,但它不能跨域,跨域是指从一个域名的网页去请求另一个域名的资源.比如从http://www.baidu.com/ 页面去请求 http://www.google. ...

  6. PyQt模拟微信聊天页面开发

    一.引述 网上关于Qt模拟微信.QQ的页面开发的多如牛毛,但C++本身来说逻辑上难上手,对只会Python的小伙伴来说太痛苦了. 今天就为大家开个场(下节更精彩),众所周知,要想模拟微信.QQ等这种聊 ...

  7. 模拟QQ聊天小项目收尾---界面展示服务端与客户端进行信息交互(用到的知识:io,线程,Swing界面,面向对象思想...... )

    大家好,我是一位在java学习圈中不愿意透露姓名并苟且偷生的小学员,如果文章有错误之处,还望海涵,欢迎多多指正 如果你从本文学到有用的干货知识,那么请您尽量点赞,关注,评论,收藏 这两天我一直在设计这 ...

  8. WebRTC H5实现服务器转发的视频聊天

    WebRTC H5实现服务器转发的视频聊天 说明: 此处使用到的WebRTC皆为H5的API,实际上调用的是封装在浏览器的WebRTC的库,用于获取实时视频数据,传输数据则是使用WebSocket实现 ...

  9. vue实现聊天框,模拟对话附上html

    vue实现聊天框,模拟对话 代码展示 // An highlighted block <!DOCTYPE html> <html><head><meta ch ...

最新文章

  1. 自然语言处理基本概念
  2. Linux各个发行版本的选择
  3. jvm 架构_不可变的基础架构,热部署和JVM
  4. LintCode: Two Sum
  5. A - Six Degrees of Cowvin Bacon POJ - 2139 最短路Floyd
  6. 特征选择算法之 ReliefF 算法
  7. 黑群晖linux删除文件夹命令,手把手教你黑群晖(二)
  8. Mac MySQL忘记密码解决办法
  9. HCIA 学习笔记 准备考试
  10. blankcount函数python,统计函数第五讲:计数函数COUNT和COUNTBLANK
  11. 杭州电子科技大学acm--2011
  12. TX2--Building OpenCV for Tegra with CUDA
  13. 霍尔 磁电 光电式传感器的比较 实验思考题
  14. Gin渲染html模板报错:ends in a non-text context: {stateHTMLCmt delimNone urlPartNone jsCtxRegexp attrNone
  15. python 经纬度计算相关
  16. 走进河北石家庄市以富裕闻名的城中村:槐底村
  17. ios 提醒事项和快捷指令,实现进度条功能
  18. 互联网日报 | 4月1日 星期四 | 华为2020年收入8914亿元;滴滴拿下消费金融牌照;HM已在中国关闭约20家门店...
  19. 【题解】通往奥格瑞玛的道路
  20. IOS ANDROID WINDOWS PHONE国内格局的悄然变化-应用电台www.apphub.fm

热门文章

  1. 新斗罗大陆手游服务端,自动搭建脚本,有手就可以,
  2. 使用Appium进行iOS的真机自动化测试
  3. 怎样用SolidWorks2013打开.igs、.x_t等格式文件
  4. 百度文库手机版通信协议分析
  5. 自定义View--太极图
  6. Latex文档单双栏设置
  7. java 如何遍历所有子目录、子文件
  8. Matplotlib可视化预测双色球
  9. java ssm校园二手书交易平台idea
  10. 无线串口服务器 moxa 稳定,moxa串口服务器通讯设置参数