css布局实现简洁清爽的pc端聊天软件UI效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现简洁清爽的pc端聊天软件UI效果代码,可以缩小到右下角、选择表情、发送快捷用语等。
代码标签: 简洁 清爽 的 pc 端 聊天 软件 UI 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>BFW NEW PAGE</title> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-3.2.1.min.js"></script> <style> .im-app { color: #333; font: 14px/1 Hiragino Sans GB,Microsoft Yahei,Arial,sans-serif } .im-app input { outline: none } .im-app img,.im-app input,.im-app li,.im-app p,.im-app ul { margin: 0; padding: 0 } .im-app input { font: 14px/1 Hiragino Sans GB,Microsoft Yahei,Arial,sans-serif } .im-app li,.im-app ul { list-style: none; display: block } .im-app img { border: none } .im-app input { font-size: 100% } .im-avatar { -webkit-border-radius: 50%; border-radius: 50%; border: none } .im-feedback { display: inline-block; *display: inline; *zoom: 1; position: absolute; font-size: 12px; right: 24px } .im-feedback-icon { cursor: pointer; margin-top: 22px; background-image: url(//repo.bfw.wiki/bfwrepo/icon/6094f82576076.png); background-size: cover; width: 24px; height: 24px } .im-feedback-content { display: none; position: absolute; left: -80px; margin-top: 20px; z-index: 9999; width: 130px; background: #fff; -webkit-box-shadow: 0 10px 20px 0 rgba(0,0,0,.05); box-shadow: 0 10px 20px 0 rgba(0,0,0,.05); -webkit-border-radius: 6px; border-radius: 6px; -webkit-border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; -webkit-border-image: -webkit-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1; -o-border-image: -o-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1 } .im-feedback-content:before { content: ""; display: block; margin-left: -1px; position: absolute; top: -12px; width: 0; height: 0; border: 6px solid transparent; border-bottom-color: #fff; right: 12px } .im-feedback-texts { list-style: none; padding: 16px 8px!important; margin: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-feedback-texts li { cursor: pointer; position: relative; line-height: 24px; height: 24px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center } .im-feedback-texts li:hover { color: #3478f6 } .im-feedback-texts li .im-feedback-text { display: inline-block; *display: inline; *zoom: 1; height: 14px; font-size: 12px; font-family: PingFangSC-Regular,PingFang SC; font-weight: 400; line-height: 14px; margin-left: 4px } .im-feedback-texts li .texts-icon { display: inline-block; *display: inline; *zoom: 1; width: 24px; height: 24px } .im-feedback-texts li .texts-icon-0 { width: 24px; height: 24px } .im-feedback-texts li .texts-icon-1 { width: 24px; height: 24px } .im-feedback-texts li .texts-icon-2 { width: 24px; height: 24px } .im-feedback-texts li .texts-icon-3 { width: 24px; height: 24px } .im-feedback-texts li .texts-icon-4 { width: 24px; height: 24px } .im-feedback-texts li+li { margin-top: 8px } .im-feedback-texts li.texts-icon-0:hover .texts-icon.texts-icon-0 { width: 24px; height: 24px } .im-feedback-texts li.texts-icon-1:hover .texts-icon.texts-icon-1 { width: 24px; height: 24px } .im-feedback-texts li.texts-icon-2:hover .texts-icon.texts-icon-2 { width: 24px; height: 24px } .im-feedback-texts li.texts-icon-3:hover .texts-icon.texts-icon-3 { width: 24px; height: 24px } .im-feedback-texts li.texts-icon-4:hover .texts-icon.texts-icon-4 { width: 24px; height: 24px } .im-emotion { display: inline-block; position: relative; text-decoration: none } .im-emotion .im-emotion-icon { cursor: pointer; line-height: 24px; margin-top: 10px; background: url(//repo.bfw.wiki/bfwrepo/icon/6094f84a2ce60.png); background-size: cover; width: 24px; height: 24px } .im-emotion .im-emotion-icon:hover { width: 24px; height: 24px } .im-emotion .im-emotion-content { display: none; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -moz-box-orient: vertical; -moz-box-direction: normal; -ms-flex-direction: column; flex-direction: column; position: absolute; bottom: 100%; margin-bottom: 7px; left: -10px; width: 408px; height: 325px; -webkit-border-radius: 6px; border-radius: 6px; background: #fff; -webkit-box-shadow: 0 -10px 20px 0 rgba(0,0,0,.05); box-shadow: 0 -10px 20px 0 rgba(0,0,0,.05); z-index: 99999; -webkit-border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; -webkit-border-image: -webkit-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1; -o-border-image: -o-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1 } .im-emotion .im-emotion-content .im-emotion-list { margin: 16px 16px 0; overflow: hidden; zoom: 1; list-style: none; height: 256px } .im-emotion .im-emotion-content .im-emotion-list .im-emotion-page { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: flex; display: -webkit-flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -webkit-flex-direction: row; -moz-box-orient: horizontal; -moz-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap } .im-emotion .im-emotion-content .im-emotion-list .im-emotion-page .im-emotion-point { height: 4px; width: 28px; margin: 0 auto } .im-emotion .im-emotion-content .im-emotion-list .im-emotion-page .im-emotion-point-page1 { width: 20px; height: 4px } .im-emotion .im-emotion-content .im-emotion-list .im-emotion-page .im-emotion-point-page2 { width: 20px; height: 4px } .im-emotion .im-emotion-content .im-emotion-list .im-emotion-page .im-emotion-point-page3 { margin-top: 144px; width: 20px; height: 4px } .im-emotion .im-emotion-content .im-emotion-list .emotion-page,.im-emotion .im-emotion-content li { display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -webkit-flex-direction: row; -moz-box-orient: horizontal; -moz-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap } .im-emotion .im-emotion-content li { cursor: pointer; width: 40px; height: 40px; -webkit-box-pack: center; -webkit-justify-content: center; -moz-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; margin-right: 8px; margin-bottom: 8px } .im-emotion .im-emotion-content li:nth-child(8n) { margin-right: 0 } .im-emotion .im-emotion-content li:hover,.im-emotion .im-emotion-content li:visited { background: #f5f5f5; -webkit-border-radius: 4px; border-radius: 4px } .im-emotion .im-emotion-content li a { width: 24px; height: 24px } .im-emotion .im-emotion-footer { margin: 16px 0; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -webkit-flex-direction: row; -moz-box-orient: horizontal; -moz-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: justify; -webkit-justify-content: space-between; -moz-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between } .im-emotion .im-emotion-footer .im-emotion-title { margin-left: 23px } .im-emotion .im-emotion-footer .im-emotion-title .im-emotion-normal { width: 58px; height: 26px; text-align: center; margin-right: 9px; display: inline-block } .im-emotion .im-emotion-footer .im-emotion-title .im-emotion-normal:active,.im-emotion .im-emotion-footer .im-emotion-title .im-emotion-normal:hover,.im-emotion .im-emotion-footer .im-emotion-title .im-emotion-normal:visited { background: #f5f5f5; -webkit-border-radius: 13px; border-radius: 13px } .im-emotion .im-emotion-footer .im-emotion-title .im-emotion-normal .im-normal { line-height: 26px; font-size: 14px; font-family: PingFangSC-Medium,PingFang SC; font-weight: 500; color: #333; display: inline-block } .im-emotion .im-emotion-footer .im-emotion-arrow { margin-right: 33px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -moz-box-pack: center; -ms-flex-pack: center; justify-content: center } .im-emotion .im-emotion-footer .im-emotion-arrow a { text-decoration: none } .im-emotion .im-emotion-footer .im-emotion-arrow .im-left-arrow-no,.im-emotion .im-emotion-footer .im-emotion-arrow .im-right-arrow { display: inline-block; background-repeat: no-repeat } .im-emotion .im-emotion-footer .im-emotion-arrow .im-left-arrow-no { margin-right: 22px; width: 6px; height: 10px } .im-emotion .im-emotion-footer .im-emotion-arrow .im-right-arrow { width: 6px; height: 10px } .im-emotion .im-emotion-arrow-down { width: 9px; height: 8px; position: absolute; top: 100%; left: 12px; width: 26px; height: 15px } .im-emotion,.im-left-arrow-no,.im-normal,.im-right-arrow { *display: inline; *zoom: 1 } .im-image { position: relative; display: inline-block } .im-image .im-image-icon { cursor: pointer; line-height: 24px; margin-top: 10px; background: url(//repo.bfw.wiki/bfwrepo/icon/6094f869616dc.png); background-size: cover; width: 24px; height: 24px } .im-image .im-image-icon:hover { width: 24px; height: 24px } .im-image .im-image-choose { display: none } .im-image { *display: inline; *zoom: 1 } .im-file { position: relative; display: inline-block } .im-file .im-file-icon { cursor: pointer; line-height: 24px; margin-top: 10px; background: url(//repo.bfw.wiki/bfwrepo/icon/6094f8775e03c.png); background-size: cover; width: 24px; height: 24px } .im-file .im-file-icon:hover { width: 24px; height: 24px } .im-file .im-file-choose { display: none } .im-file { *display: inline; *zoom: 1 } .im-min .im-contactwindow { -webkit-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px } .im-min .im-contactwindow .im-switchsize-btn { top: 16px } .im-contactwindow .im-contactwindow-header .im-contactwindow-tips .im-mini-newmsg-count { font-size: 12px; color: #fff; height: 16px; background: #ff552e; -webkit-border-radius: 8px; border-radius: 8px; border: none; line-height: 16px; padding: 0 5px; margin-left: 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-contactwindow .im-contactwindow-header .im-contactwindow-tips .im-mini-newmsg-count.im-hide { display: none } .im-contactwindow .im-contactwindow-header .im-switchsize-btn { position: absolute; right: 41px; width: 24px; height: 24px; top: 12px; right: 48px; cursor: pointer; overflow: hidden } .im-contactwindow .im-contactwindow-header .im-switchsize-btn .im-contactwindow-switch-icon { width: 24px; height: 24px } .im-app.im-rightbottom.im-min { -webkit-transform: translateZ(0); -moz-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; width: 274px; margin-bottom: -512px } .im-app.im-rightbottom.im-min .im-chatwindow { display: none!important } .im-app.im-rightbottom.im-min .im-contactwindow-header { cursor: pointer } .im-shortcut { display: inline-block; position: relative; font-size: 12px } .im-shortcut { *display: inline; *zoom: 1 } .im-shortcut-icon { cursor: pointer; line-height: 24px; margin-top: 10px; background: url(//repo.bfw.wiki/bfwrepo/icon/6094f85b87dce.png); background-size: cover; width: 24px; height: 24px } .im-shortcut-icon:hover { width: 24px; height: 24px } .im-shortcut-content { display: none; position: absolute; bottom: 100%; margin-bottom: 7px; left: -43px; padding: 24px 0 24px 24px; width: 288px; background: #fff; -webkit-box-shadow: 0 -10px 20px 0 rgba(0,0,0,.05); box-shadow: 0 -10px 20px 0 rgba(0,0,0,.05); -webkit-border-radius: 6px; border-radius: 6px; -webkit-border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; -webkit-border-image: -webkit-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; -moz-border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1; -o-border-image: -o-linear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#eaeaea)) 1 1; border-image: -moz- oldlinear-gradient(top,#f2f2f2,#eaeaea) 1 1; border-image: linear-gradient(180deg,#f2f2f2,#eaeaea) 1 1 } .im-shortcut-texts { list-style: none; padding: 0; margin: 0 } .im-shortcut-texts li { padding: 10px 0; cursor: pointer; font-size: 14px; font-family: PingFangSC-Regular,PingFang SC; font-weight: 400; color: #333; line-height: 14px; height: 14px } .im-shortcut-texts li:first-child { padding-top: 0 } .im-shortcut-texts li:last-child { padding-bottom: 0 } .im-shortcut-texts li:hover { color: #3478f6 } .im-shortcut-arrow-down { width: 9px; height: 8px; position: absolute; top: 100%; left: 45px; width: 26px; height: 15px } .im-msg { position: relative; *zoom: 1 } .im-msg .im-msg-time { text-align: center; font-weight: 400; margin-bottom: 16px; color: #bbb; font-size: 12px; display: none; margin-top: 2px } .im-msg .im-msg-main { display: inline-block; max-width: 100%; padding: 10px 18px; position: relative; -webkit-border-radius: 16px; border-radius: 16px } .im-msg .im-msg-main img { max-width: 100%!important } .im-msg .im-msg-arrow { content: ""; position: absolute; width: 15px; height: 18px; top: 100%; margin-top: -18px } .im-msg .im-msg-feedback { display: none } .im-msg .im-msg-feedback .im-msg-feedback-container { background: #fdf6e5; padding: 5px 10px 5px 25px; color: #333; display: inline-block; position: relative } .im-msg .im-msg-feedback .im-msg-feedback-container .im-msg-feedback-icon { position: absolute; display: inline-block; top: 50%; margin-top: -5px; left: 10px; width: 10px; height: 10px } .im-msg .im-msg-feedback .im-msg-feedback-container .im-msg-feedback-content { display: inline-block } .im-msg.im-msg-me { text-align: right } .im-msg.im-msg-me .im-msg-arrow { left: 100%; margin-left: -11px; width: 15px; height: 18px } .im-msg.im-msg-me .im-msg-avatar { right: 0; margin-right: -42px } .im-msg.im-msg-me .im-msg-main { margin-right: 12px; margin-left: 42px; background: -webkit-gradient(linear,left top,right top,from(#3478f6),to(#3478f6)); background: -webkit-linear-gradient(left,#3478f6,#3478f6); background: -moz- oldlinear-gradient(left,#3478f6 0,#3478f6 100%); background: -o-linear-gradient(left,#3478f6 0,#3478f6 100%); background: linear-gradient(90deg,#3478f6,#3478f6); color: #fff; font-size: 14px } .im-msg.im-msg-me .im-msg-main .im-msg-content { text-align: left } .im-msg.im-msg-me.im-has-avatar .im-msg-main { margin-right: 42px } .im-msg.im-msg-me.im-msg-fail .im-msg-main .im-msg-send-status { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; right: 100%; margin-top: -8px; margin-right: 5px } .im-msg.im-msg-me .im-msg-showed-status { content: ""; position: absolute; top: 50%; width: 100%; right: 100%; margin-right: 5px; color: #b2b2b2; font-size: 12px } .im-msg.im-msg-me.im-msg-fail .im-msg-main .im-msg-send-status { cursor: pointer; margin-top: -10px; width: 16px; height: 16px } .im-msg.im-msg-me.im-msg-fail .im-msg-feedback { display: block; text-align: center; margin-top: 10px } .im-msg.im-msg-other { text-align: left } .im-msg.im-msg-other .im-msg-avatar { left: 0; margin-left: -42px } .im-msg.im-msg-other .im-msg-main { margin-left: 12px; background-color: #fff; color: #000; margin-right: 42px } .im-msg.im-msg-other .im-msg-main .im-msg-send-status { display: none } .im-msg.im-msg-other .im-msg-main .im-msg-content { text-align: left } .im-msg.im-msg-other .im-msg-main .im-msg-arrow { right: 100%; margin-right: -11px; width: 15px; height: 18px } .im-msg.im-msg-other.im-has-avatar .im-msg-main { margin-left: 42px } .im-msg.im-msg-other .im-msg-showed-status,.im-msg .im-msg-user-name { display: none } .im-msg.im-has-avatar .im-msg-avatar { position: absolute; width: 32px; height: 32px; bottom: 0 } .im-msg-showtime .im-msg-time { display: block } .im-msg+.im-msg { margin-top: 16px } .im-msg+.im-msg.im-msg-showtime { margin-top: 16px } .im-msg-feedback-content,.im-msg-feedback-icon,.im-msg .im-msg-feedback .im-msg-feedback-container,.im-msg .im-msg-main { *display: inline; *zoom: 1 } .im-msg-fail.im-msg-fail-hide .im-msg-feedback { display: none!important } .im-msg-list { list-style: none; padding: 0; margin: 0; *zoom: 1 } .im-session-active { background-color: #e2e1e1; } .im-msgviewer { position: relative; width: 100%; height: 100%; overflow: hidden; *zoom: 1 } .im-msgviewer { overflow-y: scroll; } .im-msgviewer .im-loading { position: absolute; top: 5px; left: 0; right: 0 } .im-msgviewer .im-msg-list { padding: 20px 24px } .im-msg-text .im-msg-main { max-width: 80% } .im-msg-text .im-msg-main .im-msg-ai { position: absolute; top: 50%; right: -26.3px; display: none; margin-top: -8.5px; width: 16px; height: 17px; cursor: pointer } .im-msg-text .im-msg-content { word-break: break-all; font-size: 14px; line-height: 22px; font-family: PingFangSC-Regular,PingFang SC } .im-msg-tip .im-msg-main { display: block; text-align: center; margin-top: 10px; background: transparent!important; margin-left: 0!important; margin-right: 0!important } .im-msg-tip-container { background: #ebebf0; padding: 6px 10px; display: inline-block; position: relative; -webkit-border-radius: 14px; border-radius: 14px; font-size: 12px; font-family: PingFangSC-Light,PingFang SC; font-weight: 300; line-height: 1.3; color: #666; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-msg-tip-content { display: inline-block; word-break: break-all } .im-msg-redit-content { color: #53b5e8; cursor: pointer } .im-app { position: relative; width: 740px; height: 540px; -webkit-box-shadow: 0 0 15px 3px rgba(0,0,0,.12); box-shadow: 0 0 15px 3px rgba(0,0,0,.12); outline: none; -webkit-border-radius: 10px; border-radius: 10px } .im-app .im-chatwindow { position: absolute; top: 0; bottom: 0; left: 0; overflow: hidden; width: 468px; background: #f8f8f9; -webkit-border-radius: 10px 0 0 10px; border-radius: 10px 0 0 10px } .im-app .im-contactwindow { position: absolute; top: 0; bottom: 0; right: 0; width: 272px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: -10px 0 20px -5px rgba(0,0,0,.05); box-shadow: -10px 0 20px -5px rgba(0,0,0,.05) } .im-app.im-rightbottom { position: fixed; z-index: 110 } .im-app.im-rightbottom { right: 24px; bottom: 24px; margin-top: -540px; -webkit-transition: margin .25s; -o-transition: margin .25s; -moz-transition: margin .25s; transition: margin .25s } .im-app.im-rightbottom.im-min { -webkit-transform: translateZ(0); -moz-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; width: 274px; margin-bottom: -512px } .im-app.im-rightbottom.im-min .im-chatwindow { display: none!important } .im-app.im-rightbottom.im-min .im-contactwindow-header { cursor: pointer } .im-chatwindow { position: relative; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; background-color: #fff } .im-chatwindow-header { height: 68px; position: absolute; top: 0; left: 0; right: 0; *z-index: 9999 } .im-chatwindow-content { border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; position: absolute; top: 60px; bottom: 150px; left: 0; right: 0; *zoom: 1 } .im-chatwindow-content .im-chatwindow-topic { overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; top: 0; right: 0; left: 0; position: absolute; background: hsla(0,0%,100%,.8); z-index: 888; -webkit-transition: height .4s; -o-transition: height .4s; -moz-transition: height .4s; transition: height .4s } .im-chatwindow-content .im-msgviewer { position: absolute; top: 0; right: 0; left: 0; bottom: 0; width: auto; height: auto; *zoom: 1 } .im-chatwindow-content .im-topic-icon { display: none; background: transparent; position: absolute; margin-left: -15px; left: 50%; top: 60px; z-index: 888; -webkit-transition: top .4s; -o-transition: top .4s; -moz-transition: top .4s; transition: top .4s; width: 30px; height: 12px } .im-chatwindow-content.im-topic .im-chatwindow-topic { height: 60px } .im-chatwindow-content.im-topic .im-msgviewer { top: 0px } .im-chatwindow-content.im-topic .im-topic-icon { display: inline-block } .im-chatwindow-content.im-topic.im-topic-no-img .im-msgviewer { top: 0; } .im-chatwindow-input { height: 150px; bottom: 0 } .im-chatwindow-float,.im-chatwindow-input { display: none; position: absolute; left: 0; right: 0 } .im-chatwindow-float { max-height: 120px; width: 110px; bottom: 160px; background: #fff; z-index: 9 } .im-chatwindow-float .im-chatwindow-arrow { width: 0; height: 0; border: 6px solid transparent; border-top-color: #fff; position: absolute; left: 14px; z-index: 1; bottom: -12px } .im-chatwindow-float .im-chatwindow-arrow.outer-arrow { border-color: #ddd transparent transparent; border-width: 7px; bottom: -14px; z-index: 2; margin-left: -1px } .im-menu-container { display: none; width: 80px; background-color: #f1f1f1; position: absolute; -webkit-border-radius: 6px; border-radius: 6px; z-index: 10 } .im-noticelist-container { background: #f9f9f9; position: absolute; width: 100%; bottom: 0; z-index: 8 } .im-panel-container { display: none; background: #fff; position: absolute; width: 100%; top: 69px; bottom: 0; overflow: hidden } .im-chatwindow-header { font-size: 16px } .im-chatwindow-header .im-contact-name,.im-chatwindow-header .im-contact-type { *display: inline; *zoom: 1 } .im-chatfloat-container { display: none; position: absolute; background: #f8f8f9; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; right: 0; bottom: 0; width: 200px; overflow: hidden; top: 69px; border-left: 1px solid #d2d2d2; z-index: 995 } .im-cwheader { position: relative } .im-cwheader .im-contact-info,.im-cwheader .im-contact-info .im-contact-name,.im-cwheader .im-contact-info .im-contact-num,.im-cwheader .im-contact-info .im-contact-type { display: inline-block } .im-cwheader .im-contact-info .im-contact-name { margin-left: 24px; max-width: 300px; height: 68px; text-align: center; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-family: PingFangSC-Medium,PingFang SC; font-weight: 500; color: #000; line-height: 68px } .im-cwheader .im-contact-info .im-contact-num,.im-cwheader .im-contact-info .im-contact-type { vertical-align: top; height: 68px; line-height: 68px; text-align: center } .im-cwheader .im-cwheader-plugins { position: absolute; display: inline-block; right: 0 } .im-cwheader .im-contact-info,.im-cwheader .im-contact-name,.im-cwheader .im-contact-type,.im-cwheader .im-cwheader-plugins { *display: inline; *zoom: 1 } .im-contactwindow { color: #333; overflow: hidden; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-box-shadow: 10px 0 20px -5px rgba(0,0,0,.05); box-shadow: 10px 0 20px -5px rgba(0,0,0,.05); -webkit-border-radius: 0 10px 10px 0; border-radius: 0 10px 10px 0 } .im-contactwindow,.im-contactwindow .im-contactwindow-header { background: -webkit-gradient(linear,left top,left bottom,from(#fafafa),to(#fff)); background: -webkit-linear-gradient(top,#fafafa,#fff); background: -moz- oldlinear-gradient(top,#fafafa 0,#fff 100%); background: -o-linear-gradient(top,#fafafa 0,#fff 100%); background: linear-gradient(180deg,#fafafa,#fff) } .im-contactwindow .im-contactwindow-header { position: relative; width: 100%; height: 56px } .im-contactwindow .im-contactwindow-header p,.im-contactwindow .im-contactwindow-header span { display: inline-block; *display: inline; *zoom: 1 } .im-contactwindow .im-contactwindow-header .im-contact-img { position: absolute; width: 70px; height: 100px; left: 0; width: 36px; height: 56px; z-index: 2; cursor: pointer } .im-contactwindow .im-contactwindow-header .im-contactwindow-tips { position: absolute; left: 48px; top: 20px; height: 16px; font-size: 16px; font-family: PingFangSC-Medium,PingFang SC; font-weight: 500; color: #333; line-height: 16px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; -ms-flex-align: center; align-items: center; z-index: 100 } .im-contactwindow .im-contactwindow-header .im-contactwindow-tips .im-mini-newmsg-count { font-size: 12px; color: #fff; height: 16px; background: #ff552e; -webkit-border-radius: 8px; border-radius: 8px; border: none; line-height: 16px; padding: 0 5px; margin-left: 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-contactwindow .im-contactwindow-header .im-contactwindow-tips .im-mini-newmsg-count.im-hide { display: none } .im-contactwindow .im-contactwindow-header .im-switchsize-btn { position: absolute; background: url(//repo.bfw.wiki/bfwrepo/icon/6094f8a54a18c.png); background-size: cover; right: 41px; width: 24px; height: 24px; top: 12px; right: 15px; cursor: pointer; overflow: hidden } .im-contactwindow .im-contactwindow-header .im-clearmsg-btn { line-height: 16px; height: 16px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; -webkit-align-content: center; -ms-flex-line-pack: center; align-content: center; cursor: pointer; position: absolute; top: 82px; left: 24px; width: 160px; z-index: 100 } .im-contactwindow .im-contactwindow-header .im-clearmsg-btn.im-contactwindow-noOrgan { left: 24px; top: 64px } .im-contactwindow .im-contactwindow-header .im-clearmsg-btn .im-clearmsg-label { font-size: 12px; color: #333 } .im-contactwindow .im-contactwindow-header.im-normal { height: 116px } .im-contactwindow .im-contactwindow-header.im-normal .im-contactwindow-tips { left: 24px; top: 14px; height: 28px; line-height: 28px } .im-contactwindow .im-contactwindow-header.im-normal .im-contactwindow-tips .im-contactwindow-info { height: 28px; font-size: 28px; font-family: PingFangSC-Medium,PingFang SC; font-weight: 500; color: #333; line-height: 28px } .im-contactwindow .im-contactwindow-body { position: absolute; left: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; top: 80px; bottom: 0; overflow: hidden; right: 0 } .im-contactwindow .im-contactwindow-body .im-contactwindow-default { left: 50%; top: 50%; margin-left: -60px; margin-top: -75px; position: absolute; display: none } .im-contactwindow .im-contactwindow-body .im-contactwindow-default .im-contactwindow-defaultDes { margin-top: 20px; font-size: 14px; color: #555; line-height: 1.4; width: 120px; height: 150px } .im-contactwindow .im-contactwindow-body .im-contactwindow-default .im-contactwindow-defaultDes .im-des-line1 { text-align: center } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization { border-bottom: 1px solid #f0f0f0; position: relative; padding-top: 112px; z-index: 10 } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactWindow-search { margin: 0 24px } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactWindow-search .im-contactWindow-header-searchinput { position: relative; overflow: hidden; padding-right: 32px; padding-left: 8px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #dedede } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactWindow-search .im-contactWindow-header-searchinput .im-contactWindow-header-searchinput-input { width: 100%; line-height: 30px; border: none; height: 30px; color: #aaa; font-size: 14px } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher { position: relative; padding: 25px 10px; font-size: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; height: 66px } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher p { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; display: inline-block; cursor: pointer; *display: inline; *zoom: 1 } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher .im-contactwindow-sessionlist { height: 30px; width: 50%; position: relative } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher .im-contactwindow-sessionlist .im-max-newmsg-count { font-size: 12px; background: red; color: #fff; border: none; -webkit-border-radius: 15px; border-radius: 15px; line-height: 16px; padding: 0 5px; position: absolute; top: -5px; left: 50%; margin-left: 4px } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher .im-contactwindow-sessionlist .im-max-newmsg-count.im-hide { display: none } .im-contactwindow .im-contactwindow-body .im-contactwindow-organization .im-contactwindow-switcher .im-contactwindow-organiz { height: 24px; width: 50%; position: absolute; border-left: .5px solid #f0f0f0; right: 0; top: 29px } .im-contactwindow .im-contactwindow-body .im-session-list-wrap { position: absolute; left: 0; bottom: 0; width: 272px; overflow: hidden; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: margin .3s; -o-transition: margin .3s; -moz-transition: margin .3s; transition: margin .3s; margin-left: 0; z-index: 9; top: 226px; *width: 280px } .im-contactwindow .im-contactwindow-body .im-session-list-wrap.im-contactwindow-noOrgan { top: 15px; padding-top: 0 } .im-min .im-contactwindow { -webkit-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px } .im-min .im-contactwindow .im-switchsize-btn { top: 16px } .im-input { width: 100%; height: 100%; position: relative } .im-input .im-input-header { height: 33px; position: absolute; top: 0; left: 0; right: 0 } .im-input .im-input-plugins { margin-left: 24px } .im-input .im-input-plugins .im-plugin+.im-plugin { margin-left: 12px } .im-input .im-input-text { position: absolute; left: 0; right: 0; top: 30px; bottom: 30px; margin: 12px 24px } .im-input [contenteditable]:active,.im-input [contenteditable]:focus { border: none; outline: none } .im-input .im-input-footer { height: 30px; position: absolute; bottom: 0; left: 0; right: 0 } .im-input .im-input-footer .im-send { position: absolute; right: 24px; bottom: 6px; cursor: pointer; display: inline-block; width: 76px; line-height: 30px; height: 30px; -webkit-border-radius: 2px; border-radius: 2px; border: 1px solid #dedede; text-align: center } .im-input .im-input-footer .im-send:hover { color: #fff; background-color: #3478f6; -webkit-box-shadow: 0 0 6px rgba(0,0,0,.28); box-shadow: 0 0 6px rgba(0,0,0,.28) } .im-input .im-input-footer .im-send-notice { height: 12px; font-size: 12px; font-family: PingFangSC-Regular,PingFang SC; font-weight: 400; color: #c6c6c6; line-height: 12px; position: absolute; right: 24px; bottom: 16px } .im-input .im-input-footer .im-sendEmptyTips { bottom: 20px; right: -72px; float: right; padding: 0 4px; background: #fff7e3; position: relative; border: 1px solid #fc6; font-size: 11px; display: none } .im-input .im-input-notice { position: absolute; left: 10px; bottom: 0; line-height: 30px; color: #0db8ed; display: none } .im-send { *display: inline; *zoom: 1 } .im-float-window { width: 100%; height: 100%; max-height: 120px; float: left; overflow: hidden; -webkit-box-shadow: 0 1px 4px hsla(0,0%,86.7%,.3),0 0 20px hsla(0,0%,86.7%,.1) inset; box-shadow: 0 1px 4px hsla(0,0%,86.7%,.3),inset 0 0 20px hsla(0,0%,86.7%,.1) } .im-float-window .im-float-content { float: left; width: 100%; cursor: pointer } .im-scrollbar { position: absolute; top: 3px; bottom: 3px; right: 3px; width: 6px } .im-scrollbar.im-inited { display: none } .im-scrollbar:hover { width: 8px } .im-scrollbar:hover .im-scrollbar-wheel { -webkit-border-radius: 4px; border-radius: 4px } .im-scrollbar-rail { width: 100%; height: 100%; background-color: transparent; position: relative } .im-scrollbar-wheel { background-color: #b6b6b6; cursor: pointer; position: absolute; left: 0; right: 0; -webkit-border-radius: 3px; border-radius: 3px } .im-session { width: 100%; height: 67px; position: relative; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; cursor: pointer; -webkit-transition: background .5s; -o-transition: background .5s; -moz-transition: background .5s; transition: background .5s; padding: 0 16px!important } .im-session .im-session-portrait { width: 38px; height: 38px; position: absolute; top: 50%; margin-top: -19px; left: 23px } .im-session .im-session-portrait .im-session-img { width: 100%; -webkit-border-radius: 50%; border-radius: 50%; height: 100% } .im-session .im-session-portrait .im-session-online-status { width: 8px; height: 8px; background: #00d60c; border: 1px solid #fff; -webkit-border-radius: 50%; border-radius: 50%; position: absolute; bottom: 0; right: 0 } .im-session .im-session-portrait .im-session-online-status.im-session-group { display: none } .im-session .im-session-user { position: absolute; padding: 16px 0; width: 188px; font-size: 0; left: 68px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-session .im-session-user .im-session-username { width: 100px; max-width: 100px; height: 16px; font-size: 14px; font-family: PingFangSC-Medium,PingFang SC; font-weight: 500; color: #333; line-height: 16px; display: inline-block; text-align: left; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; position: relative; vertical-align: baseline } .im-session .im-session-user .im-shop-icon { display: none } .im-session .im-session-user .im-msg-time { position: absolute; display: inline-block; font-size: 12px; color: #999; max-width: 67px; line-height: 14px; right: 0; font-family: PingFangSC-Light,PingFang SC; font-weight: 300; color: #aaa; white-space: nowrap; text-align: right; vertical-align: center } .im-session .im-session-user .im-last-msg { width: 158px; height: 18px; font-size: 12px; font-family: PingFangSC-Light,PingFang SC; font-weight: 300; color: #999; line-height: 16px; -o-text-overflow: ellipsis; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: baseline; margin-top: 8px } .im-session .im-session-user .im-session-msg-count { font-size: 12px; background: #ff552e; color: #fff; border: none; -webkit-border-radius: 8px; border-radius: 8px; height: 16px; line-height: 16px; padding: 0 5px; position: absolute; bottom: 17px; right: 0; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; max-width: 34px; z-index: 10000; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box } .im-session .im-session-user .im-session-msg-count.im-hide { display: none } .im-session .im-session-container { width: 100%; height: 100%; border-bottom: 1px solid #f0f0f0 } .im-session-username,.im-session .im-session-user,.im-session .im-session-user .im-last-msg,.im-session .im-session-user .im-msg-time,.im-session .im-session-user .im-session-username { *display: inline; *zoom: 1 } .im-session-list { width: 100%; padding: 17px 16px } .tooltip { display: inline-block } .tooltip { position: relative } .tooltip .tooltiptext { visibility: hidden; width: 90px; background-color: #fff; color: #666; text-align: center; font-size: 16px; -webkit-border-radius: 6px; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 170%; left: 50%; margin-left: -45px; -webkit-box-shadow: 2px 2px 6px rgba(77,75,75,.28); -ms-box-shadow: 2px 2px 6px rgba(0,0,0,.28); -o-box-shadow: 2px 2px 6px rgba(0,0,0,.28); box-shadow: 2px 2px 6px rgba(0,0,0,.28) } .tooltip .tooltiptext1 { width: 60px; margin-left: -30px } .tooltip .tooltiptext:after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff } .tooltip:hover .tooltiptext { visibility: visible } .window-contactinfo-bg { display: none; position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 996; background: #000; -webkit-opacity: .6; -moz-opacity: .6; -khtml-opacity: .6; opacity: .6; filter: alpha(opacity=60) } </style> </head> <body> <div class="im-app im-rightbottom" tabindex="-1"> <div class="im-contactwindow"> <div class="im-contactwindow-header im-normal"> <p class="im-contact-img"></p> <p class="im-contactwindow-tips"> <span class="im-contactwindow-info">微信</span> <span class="im-mini-newmsg-count im-hide">3</span> </p> <span class="im-switchsize-btn"> <span class="im-contactwindow-switch-icon"></span> </span> <a class="im-clearmsg-btn im-contactwindow-noOrgan"> <span class="im-clearmsg-btn-icon"></span> <span class="im-clearmsg-label">清除全部未读消息</span> </a> </div> <div class="im-contactwindow-body im-contactwindow-noOrgan"> <div class="im-contactwindow-default" style="display: none;"> <p class="im-contactwindow-defaultImg"></p> <div class="im-contactwindow-defaultDes"> <span class="im-des-line1">尚未和其他人聊天,请选择您中意的帖子,并与发布者交谈</span> </div> </div> <div class="im-contactwindow-organization" style="display: none;"> <div class="im-contactWindow-search"> <p class="im-contactWindow-header-searchinput"> <input type="text" placeholder="搜索" class="im-contactWindow-header-searchinput-input"> <i class="im-contactWindow-header-searchinput-icon"> </i> </p> </div> <div class="im-contactwindow-switcher"> <p class="im-contactwindow-sessionlist"> <i class="im-contactwindow-sessionlist-icon im-active"> </i> <span class="im-max-newmsg-count im-hide"></span> </p> <p class="im-contactwindow-organiz"> <i class="im-contactwindow-organization-icon"> </i> </p> </div> </div> <div class="im-session-list-wrap im-contactwindow-noOrgan"> <ul class="im-session-list" style="margin-top: 0px;"> <li class="im-session"> <div class="im-session-container"> <div class="im-session-portrait"> <img alt="" class="im-avatar im-session-img" crossorigin="anonymous" src="//repo.bfw.wiki/bfwrepo/icon/5de9aa2895003.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90"> <p class="im-session-online-status im-session-group"></p> </div> <div class="im-session-user"> <span class="im-session-username">通知</span> <span class="im-shop-icon">商家聊天</span> <span class="im-msg-time" style="display: none;"></span> <span class="im-last-msg">你撤回一条消息</span> <span class="im-silent-icon"></span> <span class="im-session-msg-count im-hide"></span> </div> </div> </li><li class="im-session"> <div class="im-session-container"> <div class="im-session-portrait"> <img alt="" class="im-avatar im-session-img" crossorigin="anonymous" src="//repo.bfw.wiki/bfwrepo/image/5d653ba895333.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90"> <p class="im-session-online-status"></p> </div> <div class="im-session-user"> <span class="im-session-username">刘雪梅</span> <span class="im-shop-icon">商家聊天</span> <span class="im-msg-time"></span> <span class="im-last-msg"></span> <span class="im-silent-icon"></span> <span class="im-session-msg-count im-hide"></span> </div> </div> </li><li class="im-session im-session-active"> <div class="im-session-container"> <div class="im-session-portrait"> <img alt="" class="im-avatar im-session-img" crossorigin="anonymous" src="//repo.bfw.wiki/bfwrepo/image/5d653bd0990d0.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90"> <p class="im-session-online-status"></p> </div> <div class="im-session-user"> <span class="im-session-username">菲儿</span> <span class="im-shop-icon">商家聊天</span> <span class="im-msg-time">14:30</span> <span class="im-last-msg">你好,加我V信,</span> <span class="im-silent-icon"></span> <span class="im-session-msg-count im-hide">3</span> &l.........完整代码请登录后点击上方下载按钮下载查看
网友评论0