css布局实现简易聊天对话窗口效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现简易聊天对话窗口效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import 'https://fonts.googleapis.com/css?family=Noto+Sans';
body {
padding: 0;
margin: 0;
background: -moz-linear-gradient(-45deg, #183850 0, #183850 25%, #192C46 50%, #22254C 75%, #22254C 100%);
background: -webkit-linear-gradient(-45deg, #183850 0, #183850 25%, #192C46 50%, #22254C 75%, #22254C 100%);
background-repeat: no-repeat;
background-attachment: fixed;
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
border-radius: 10px;
background-color: rgba(25, 147, 147, 0.1);
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: rgba(25, 147, 147, 0.2);
}
.chat-thread {
margin: 24px auto 0 auto;
padding: 0 20px 0 0;
list-style: none;
overflow-y: scroll;
overflow-x: hidden;
}
.chat-thread li {
position: relative;
clear: both;
display: inline-block;
padding: 16px 40px 16px 20px;
margin: 0 0 20px 0;
font: 16px/20px "Noto Sans", sans-serif;
border-radius: 10px;
background-color: rgba(25, 147, 147, 0.2);
}
/* Chat - Avatar */
.chat-thread li:before {
position: absolute;
top: 0;
width: 50px;
height: 50px;
border-radius: 50px;
content: "";
}
/* Chat - Speech Bubble Arrow */
.chat-thread li:after {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0