vue实现新消息点开消息列表效果代码
代码语言:html
所属分类:布局界面
代码描述:vue实现新消息点开消息列表效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*:before, *:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
font-weight: 400;
background: #f0edf0;
font-size: 0.875rem;
min-height: 100vh;
margin: 0;
line-height: 1.5;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 0.625rem;
grid-template-areas: ". main main ." ". main main .";
overflow: hidden;
}
.container {
width: 20rem;
height: 20rem;
grid-area: main;
-ms-flex-item-align: center;
align-self: center;
justify-self: center;
}
h2 {
font-size: 1.6rem;
font-weight: 400;
line-height: 2rem;
color: #1f2022;
}
ul {
list-style-type: none;
padding: 0.5rem 1rem;
margin: 0 0 0.5rem;
}
li {
display: inline-block;
padding: 0.85rem 1rem;
color: #1f2022;
}
h6 {
font-size: 1rem;
font-weight: 500;
line-height: 1.1;
margin: 0.45rem 0;
}
a {
color: #4aaee7;
background: transparent;
outline: 0;
text-decoration: none;
cursor: pointer;
}
.notification {
position: absolute;
}
.tooltip-bell {
position: absolute;
display: block;
left: 9rem;
color: #a5a6a8;
}
.tooltip {
position: absolute;
top: 2.5rem;
line-height: 1.5;
color: #27303d;
width: 20rem;
background: #fff;
border-radius: 5px;
-webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}
.tooltip::before {
content: '';
position: absolute;
top: -0.4rem;
right: 8.3rem;
border-left: 2rem solid transparent;
border-right: 2rem solid t.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0