angular与jquery实现多用户及时通讯聊天窗口效果

代码语言:html

所属分类:其他

代码描述:angular与jquery实现多用户及时通讯聊天窗口效果

代码标签: 实现 多用户 及时 通讯 聊天 窗口 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html, body {
  background: -webkit-gradient(linear, left top, left bottom, from(#2EC4B6), to(#9EB1E9));
  background: linear-gradient(180deg, #2EC4B6, #9EB1E9);
  overflow-x: hidden;
}

.container {
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-align: center;
          align-items: center;
  height: 100vh;
}

.inbox {
  background: #EDF2F4;
  width: 650px;
  height: 450px;
  display: -webkit-box;
  display: flex;
  border-radius: 4px;
}
.inbox aside {
  background: #43d3c5;
  -webkit-box-flex: 1;
          flex: 1 1 auto;
  height: 100%;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.inbox aside .avatar {
  width: 30px;
  height: 30px;
  border: 2px solid #FFF;
  border-radius: 100%;
}
.inbox aside li {
  background: #36d0c2;
  list-style: none;
  color: #FFF;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
          justify-content: space-between;
  padding: 0 2em;
  -webkit-box-align: center;
          align-items: center;
  height: 5em;
  font-size: 0.8em;
  cursor: pointer;
  border-bottom: 1px solid #4bd5c8;
  border-top-left-radius: 4px;
}
.inbox aside li:hover {
  background: #30ccbe;
}
.inbox main {
  background: #EDF2F4;
  height: 100%;
  -webkit-box-flex: 1;
          flex: 1 1 70%;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  -webkit-transform: scale(1.035);
          transform: scale(1.035);
}
.inbox main .message-wrap {
  height: 88%;
  overflow-y: scroll;
}
.inbox main .message {
  background: #43d3c5.........完整代码请登录后点击上方下载按钮下载查看

网友评论0