chattest.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>聊天</title>
  7. <style>
  8. body {
  9. padding: 0;
  10. margin: 0;
  11. font-family: -apple-system;
  12. font-family: "-apple-system", "Helvetica Neue", "Roboto", "Segoe UI", sans-serif;
  13. }
  14. .chat-title {
  15. height: 50px;
  16. width: 100%;
  17. text-align: center;
  18. padding-top: 15px;
  19. padding-bottom: 15px;
  20. background-color: #ffffff;
  21. border-bottom: 1px solid #F1F1F1;
  22. }
  23. .chat-title span {
  24. line-height: 50px;
  25. }
  26. .chat-content {
  27. background-color: #ebebeb;
  28. overflow: auto;
  29. position: absolute;
  30. bottom: 156px;
  31. top: 85px;
  32. left: 0px;
  33. width: 100%;
  34. }
  35. .chat-bottom-area {
  36. height: 155px;
  37. overflow: hidden;
  38. border-top: 1px solid #F1F1F1;
  39. display: block;
  40. position: absolute;
  41. bottom: 0px;
  42. background: #ffffff;
  43. width: 100%;
  44. }
  45. .chat-bottom-area-tool {
  46. position: relative;
  47. padding: 0 8px;
  48. height: 38px;
  49. line-height: 38px;
  50. font-size: 0;
  51. }
  52. .chat-bottom-area-tool img {
  53. margin: 7px 10px;
  54. }
  55. .chat-bottom-area-textarea {
  56. margin-left: 10px;
  57. }
  58. .chat-bottom-area-textarea textarea {
  59. display: block;
  60. width: 100%;
  61. padding: 5px 0 0;
  62. height: 68px;
  63. line-height: 20px;
  64. border: none;
  65. overflow: auto;
  66. resize: none;
  67. background: 0 0;
  68. }
  69. .chat-bottom-area-send-space {
  70. position: relative;
  71. height: 46px;
  72. }
  73. .chat-bottom-area-send {
  74. position: absolute;
  75. right: 15px;
  76. top: 3px;
  77. height: 32px;
  78. line-height: 32px;
  79. cursor: pointer;
  80. }
  81. .chat-bottom-area-send-btn {
  82. border-radius: 3px 0 0 3px;
  83. }
  84. .chat-bottom-area-send span {
  85. display: inline-block;
  86. vertical-align: top;
  87. font-size: 14px;
  88. line-height: 32px;
  89. margin-left: 5px;
  90. padding: 0 20px;
  91. background-color: #5FB878;
  92. color: #fff;
  93. border-radius: 3px;
  94. }
  95. .chat-sender {
  96. clear: both;
  97. font-size: 80%;
  98. }
  99. .chat-sender div:nth-of-type(1) {
  100. float: left;
  101. }
  102. .chat-sender div:nth-of-type(2) {
  103. margin: 0 50px 2px 50px;
  104. padding: 0px;
  105. color: #848484;
  106. font-size: 70%;
  107. text-align: left;
  108. }
  109. .chat-sender div:nth-of-type(3) {
  110. background-color: white;
  111. /*float: left;*/
  112. margin: 0 50px 10px 50px;
  113. padding: 10px 10px 10px 10px;
  114. border-radius: 7px;
  115. text-indent: -12px;
  116. }
  117. .chat-sender .img-chat {
  118. width:192px;
  119. height:144px;
  120. display: table-cell;
  121. vertical-align: middle;
  122. }
  123. .chat-sender .img-chat img {
  124. max-width: 100%;
  125. max-height: 100%;
  126. display: block;
  127. margin: auto;
  128. }
  129. .chat-receiver {
  130. clear: both;
  131. font-size: 80%;
  132. }
  133. .chat-receiver div:nth-of-type(1) {
  134. float: right;
  135. }
  136. .chat-receiver div:nth-of-type(2) {
  137. margin: 0px 50px 2px 50px;
  138. padding: 0px;
  139. color: #848484;
  140. font-size: 70%;
  141. text-align: right;
  142. }
  143. .chat-receiver div:nth-of-type(3) {
  144. /*float:right;*/
  145. background-color: #b2e281;
  146. margin: 0px 50px 10px 50px;
  147. padding: 10px 10px 10px 10px;
  148. border-radius: 7px;
  149. }
  150. .chat-receiver .img-chat {
  151. width:192px;
  152. height:144px;
  153. display: table-cell;
  154. vertical-align: middle;
  155. }
  156. .chat-receiver .img-chat img {
  157. max-width: 100%;
  158. max-height: 100%;
  159. display: block;
  160. margin: auto;
  161. }
  162. .chat-receiver div:first-child img,
  163. .chat-sender div:first-child img {
  164. width: 40px;
  165. height: 40px;
  166. /*border-radius: 10%;*/
  167. }
  168. .chat-left_triangle {
  169. height: 0px;
  170. width: 0px;
  171. border-width: 6px;
  172. border-style: solid;
  173. border-color: transparent white transparent transparent;
  174. position: relative;
  175. left: -22px;
  176. top: 3px;
  177. }
  178. .chat-right_triangle {
  179. height: 0px;
  180. width: 0px;
  181. border-width: 6px;
  182. border-style: solid;
  183. border-color: transparent transparent transparent #b2e281;
  184. position: relative;
  185. right: -22px;
  186. top: 3px;
  187. }
  188. .chat-notice {
  189. clear: both;
  190. font-size: 70%;
  191. color: white;
  192. text-align: center;
  193. margin-top: 15px;
  194. margin-bottom: 15px;
  195. }
  196. .chat-notice span {
  197. background-color: #cecece;
  198. line-height: 25px;
  199. border-radius: 5px;
  200. padding: 5px 10px;
  201. }
  202. </style>
  203. </head>
  204. <body>
  205. <!-- title -->
  206. <div class="chat-title">
  207. <span>姓名或群名</span>
  208. </div>
  209. <div class="chat-content">
  210. <!-- Left -->
  211. <div class="chat-sender">
  212. <div><img src="https://git.o2oa.net/uploads/-/system/project/avatar/20/logo_o2_1000_round.png?width=64"></div>
  213. <div>阿奔 Ben</div>
  214. <div>
  215. <div class="chat-left_triangle"></div>
  216. <span> 苹果增加三款配件的颜色选项</span>
  217. </div>
  218. </div>
  219. <!-- Right -->
  220. <div class="chat-receiver">
  221. <div><img src="img/max.png"></div>
  222. <div>好人·马克思</div>
  223. <div>
  224. <div class="chat-right_triangle"></div>
  225. <span> 但是如果你正在再发新的APP跨平台项目,我建议你考虑一下Ionic2/Ionic3。 ionic2/Ionic3的架构使得“单一职责原则”得到了体现,组件、页面之间相互独立,有利于内聚和解耦。</span>
  226. </div>
  227. </div>
  228. <!-- Right -->
  229. <div class="chat-sender">
  230. <div><img src="img/adam.jpg"></div>
  231. <div>阿达姆 Adam</div>
  232. <div>
  233. <div class="chat-left_triangle"></div>
  234. <span> 一款接近原生的Html5移动App开发框架</span>
  235. </div>
  236. </div>
  237. <!-- Notice/Center -->
  238. <div class="chat-notice">
  239. <span>2017年12月10日 23:13</span>
  240. </div>
  241. <!-- Left -->
  242. <div class="chat-sender">
  243. <div><img src="img/perry.png" /></div>
  244. <div>佩里 Perry</div>
  245. <div>
  246. <div class="chat-left_triangle"></div>
  247. <span> Ionic遵循视图控制模式,通俗的理解和 Cocoa 触摸框架相似。在视图控制模式中,我们将界面的不同部分分为子视图或包含其他视图的子视图控制器。</span>
  248. </div>
  249. </div>
  250. <!-- Left -->
  251. <div class="chat-sender">
  252. <div><img src="img/mike.png"></div>
  253. <div>麦克</div>
  254. <div>
  255. <div class="chat-left_triangle"></div>
  256. <span> 你可以用ionRefresher指令实现拉动刷新,并可以用ionInfiniteScroll指令实现无限滚动。</span>
  257. </div>
  258. </div>
  259. <!-- Right -->
  260. <div class="chat-receiver">
  261. <div><img src="img/max.png"></div>
  262. <div>好人·马克思</div>
  263. <div>
  264. <div class="chat-right_triangle"></div>
  265. <span> 最后但并非最不重要的是</span>
  266. </div>
  267. </div>
  268. <!-- Notice/Center -->
  269. <div class="chat-notice">
  270. <span>你被群主移除群聊</span>
  271. </div>
  272. <!-- Left -->
  273. <div class="chat-sender">
  274. <div><img src="img/mike.png"></div>
  275. <div>麦克</div>
  276. <div>
  277. <div class="chat-left_triangle"></div>
  278. <span> 你可以用ionRefresher指令实现拉动刷新,并可以用ionInfiniteScroll指令实现无限滚动。</span>
  279. </div>
  280. </div>
  281. <!-- Right -->
  282. <div class="chat-receiver">
  283. <div><img src="img/max.png"></div>
  284. <div>好人·马克思</div>
  285. <div>
  286. <div class="chat-right_triangle"></div>
  287. <span> 最后但并非最不重要的是</span>
  288. </div>
  289. </div>
  290. <!-- Notice/Center -->
  291. <div class="chat-notice">
  292. <span>你被群主移除群聊</span>
  293. </div>
  294. <!-- Left -->
  295. <div class="chat-sender">
  296. <div><img src="img/mike.png"></div>
  297. <div>麦克</div>
  298. <div>
  299. <div class="chat-left_triangle"></div>
  300. <audio src="http://api.muliba.net/media?id=0085f051-224d-4513-919e-f2ad8980a128" controls="controls" preload id="music1" />
  301. </div>
  302. </div>
  303. <div class="chat-sender">
  304. <div><img src="img/mike.png"></div>
  305. <div>麦克</div>
  306. <div>
  307. <div class="chat-left_triangle"></div>
  308. <div class="img-chat">
  309. <img src="https://13315641.s21i.faiusr.com/2/1/ABUIABACGAAg796F5wUo0Ou0ETCqDTjlCQ!1500x1500.jpg">
  310. </div>
  311. </div>
  312. </div>
  313. <div class="chat-sender">
  314. <div><img src="img/mike.png"></div>
  315. <div>麦克</div>
  316. <div>
  317. <div class="chat-left_triangle"></div>
  318. <span> 你可以用ionRefresher指令实现拉动刷新,并可以用ionInfiniteScroll指令实现无限滚动。</span>
  319. </div>
  320. </div>
  321. <div class="chat-sender">
  322. <div><img src="img/mike.png"></div>
  323. <div>麦克</div>
  324. <div>
  325. <div class="chat-left_triangle"></div>
  326. <span>
  327. <img src="icons/location.png" height="32" width="32">
  328. <a href="https://api.map.baidu.com/marker?location=30.28295614138489,120.12924599847905&title=浙江省杭州市西湖区文三路492号&content=浙江中小企业大厦东北83米&output=html&src=net.o2oa.map" target="_blank">浙江省杭州市西湖区文三路492号</a>
  329. </span>
  330. </div>
  331. </div>
  332. <!-- Right -->
  333. <div class="chat-receiver">
  334. <div><img src="img/max.png"></div>
  335. <div>好人·马克思</div>
  336. <div>
  337. <div class="chat-right_triangle"></div>
  338. <span> 最后但并非最不重要的是</span>
  339. </div>
  340. </div>
  341. <div class="chat-receiver">
  342. <div><img src="img/max.png"></div>
  343. <div>好人·马克思</div>
  344. <div>
  345. <div class="chat-right_triangle"></div>
  346. <div class="img-chat">
  347. <img src="https://13315641.s21i.faiusr.com/2/1/ABUIABACGAAg796F5wUo0Ou0ETCqDTjlCQ!1500x1500.jpg">
  348. </div>
  349. </div>
  350. </div>
  351. <div class="chat-receiver">
  352. <div><img src="img/max.png"></div>
  353. <div>好人·马克思</div>
  354. <div>
  355. <div class="chat-right_triangle"></div>
  356. <audio src="http://api.muliba.net/media?id=0085f051-224d-4513-919e-f2ad8980a128" controls="controls" preload id="music1" />
  357. </div>
  358. </div>
  359. <!-- Notice/Center -->
  360. <div class="chat-notice">
  361. <span>你被群主移除群聊</span>
  362. </div>
  363. </div>
  364. <div class="chat-bottom-area">
  365. <div class="chat-bottom-area-tool">
  366. <img src="./icons/icon-emoji.png" />
  367. </div>
  368. <div class="chat-bottom-area-textarea"><textarea></textarea></div>
  369. <div class="chat-bottom-area-send-space">
  370. <div class="chat-bottom-area-send">
  371. <span class="chat-bottom-area-send-btn">发送</span>
  372. </div>
  373. </div>
  374. </div>
  375. <div style="display:none;position: absolute;width:630px;height: 260px;left: 5px;bottom: 155px;background-color: #ffffff;border: 1px solid #F1F1F1; padding-top: 8px;border-radius: 8px; box-shadow: 5px 5px #1d1d1d10;z-index: 100;">
  376. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left; margin: 5px;" />
  377. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  378. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  379. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  380. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  381. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  382. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  383. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  384. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  385. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  386. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  387. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  388. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  389. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  390. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  391. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  392. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  393. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  394. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  395. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  396. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  397. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  398. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  399. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  400. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  401. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  402. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  403. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  404. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  405. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  406. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  407. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  408. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  409. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  410. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  411. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  412. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  413. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  414. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  415. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  416. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  417. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  418. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  419. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  420. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  421. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  422. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  423. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  424. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  425. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  426. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  427. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  428. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  429. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  430. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  431. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  432. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  433. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  434. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  435. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  436. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  437. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  438. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  439. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  440. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  441. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  442. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  443. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  444. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  445. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  446. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  447. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  448. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  449. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  450. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  451. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  452. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  453. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  454. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  455. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  456. <img src="./icons/icon-emoji.png" style="width: 32px;height: 32px; float: left;margin: 5px;"/>
  457. </div>
  458. </body>
  459. </html>