css实现简约聊天窗口效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现简约聊天窗口效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.11.2.css">
<style>
@import url("https://fonts.googleapis.com/css?family=Lato:400,700");
html {
display:grid;
min-height:100%
}
body {
display:grid;
background:linear-gradient(to bottom left,#79C7C5 40%,#F9FBFF 100%);
font-family:"Lato",sans-serif
}
.container {
position:relative;
margin:12% auto;
width:620px;
height:450px
}
.messages {
position:absolute;
background:#F9FBFF;
opacity:.5;
width:30%;
height:70%;
top:2.5%;
left:5%;
border-radius:10px 0 0 10px;
box-shadow:-5px 5px 10px rgba(119,119,119,0.5)
}
.people {
position:absolute;
list-style-type:none;
width:30.2%;
left:-10px;
top:24.7%;
line-height:.7em
}
.people .title {
text-transform:uppercase;
font-size:.7em;
margin-left:14px;
letter-spacing:1px;
color:#777
}
.people .time {
font-size:.3em;
color:#777;
position:absolute;
right:10px;
margin-top:2px
}
.people .preview {
color:#79C7C5;
margin-left:14px;
font-size:.5em
}
.person {
padding:12px 0 12px 12px;
border-bottom:1px solid #79C7C5;
cursor:pointer
}
.person:hover {
background:#F9FBFF;
transition:all .3s ease-in-out
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0