amaze布局模仿pc端微信聊天窗口ui交互效果代码
代码语言:html
所属分类:布局界面
代码描述:amaze布局模仿pc端微信聊天窗口ui交互效果代码,左侧tab选项卡可切换,包括联系人、收藏夹、最近的消息,消息发送,设置等操作。
代码标签: amaze 布局 模仿 pc端 微信 聊天 窗口 ui 交互 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/amazeui.min.css">
<style>
body{
background-size: 100% 100%;
height: 100vh;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
::-webkit-scrollbar {
width:5px;
} /* 这是针对缺省样式 (必须的) */
::-webkit-scrollbar-track {
background-color:rgba(0,0,0,0);
border-radius:10px;
} /* 滚动条的滑轨背景颜色 */
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.1);
border-radius:10px;
} /* 滑块颜色 */
::-webkit-scrollbar-button {
background-color:rgba(0,0,0,0);
height: 0;
} /* 滑轨两头的监听按钮颜色 */
::-webkit-scrollbar-corner {
background-color: black;
} /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
p{
margin: 0;
}
ul{
margin: 0;
padding: 0;
}
ul li{
list-style-type: none;
}
.box{
background-image: url(//repo.bfw.wiki/bfwrepo/image/6430c7d5ddf77.png);
background-repeat: no-repeat;
width: 100%;
height: 100%;
background-position: center center;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
.wechat{
width:860px;
height:680px;
background: #fff;
box-shadow: 0 0 8px rgba(0,0,0,.1);
border-radius:4px;
overflow: hidden;
}
.sidestrip{
width: 60px;
background:#2a2e32;
float: left;
height: 100%;
border-radius: 4px 0 0 4px;
padding-top:20px;
position: relative;
}
.own_head{
width: 34px;
height: 34px;
margin-left: 13px;
border-radius: 2px;
background: url(//repo.bfw.wiki/bfwrepo/image/60d41f5173b0d.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90);
background-size:34px;
}
.am-dropdown-content{
width: 300px;
margin-left: 20px;
border:none;
border-radius: 4px;
box-shadow: 0 0 8px rgba(0,0,0,.1);
padding: 30px;
top:0px;
left:32px;
}
.am-dropdown-content:after, .am-dropdown-content:before{
display: none;
}
.own_head_top{
width: 100%;
display: inline-block;
border-bottom: 1px solid #f4f4f4;
padding-bottom: 25px;
}
.own_name{
font-size: 18px;
color: #333;
margin-bottom:6px;
}
.own_name > img{
width: 14px;
margin-left: 8px;
margin-top:3px;
}
.own_numb{
font-size:14px;
color: #999;
}
.own_head_top > img{
width: 60px;
float: right;
}
.own_head_top_text{
float: left;
}
.own_head_bottom{
padding-top: 20px;
}
.own_head_bottom p{
color: #333;
}
.own_head_bottom p > span{
color: #999;
margin-right: 10px;
}
.own_head_bottom_img{
display: inline-block;
float: right;
margin-top: 10px;
}
.own_head_bottom_img a img{
margin-left:20px;
}
#si_1{
background: url(//repo.bfw.wiki/bfwrepo/images/chat/head_2.png) no-repeat;
}
#si_2{
background: url(//repo.bfw.wiki/bfwrepo/images/chat/head_3.png) no-repeat;
}
#si_3{
background: url(//repo.bfw.wiki/bfwrepo/images/chat/head_4.png) no-repeat;
}
.sidestrip_icon{
margin-top: 30px;
padding: 0 18px;
width:60px;
}
.sidestrip_icon a{
width: 100%;
height:24px;
display: block;
margin-bottom: 30px;
}
.active{
background: url(//repo.bfw.wiki/bfwrepo/image/60d41f497bade.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90) no-repeat !important;
}
.sidestrip_bc{
background:url(//repo.bfw.wiki/bfwrepo/images/chat/head_5.png) no-repeat;
position: absolute;
bottom: 20px;
width: 16px;
height: 13px;
left: 22px;
}
ul.am-dropdown-content{
padding: 0;
bottom:10px;
top: auto;
left: 40px;
background:#393d40;
width: auto;
border-radius: 0;
}
ul.am-dropdown-content>li>a{
color:#fff;
}
ul.am-dropdown-content>.am-active>a, ul.am-dropdown-content>.am-active>a:focus, ul.am-dropdown-content>.am-active>a:hover{
color: #fff;
text-decoration: none;
outline: 0;
background-color: #333;
}
ul.am-dropdown-content>li>a:focus, ul.am-dropdown-content>li>a:hover{
text-decoration: none;
color: #fff;
background-color: #333;
}
.am-dimmer{
z-index: 0;
background-color:rgba(0,0,0,0);
}
.middle{
width:250px;
height: 100%;
float: left;
background: #e6e5e5;
overflow: hidden;
display: none;
}
.on{
display:block;
}
.user_list, .friends_list, .icon_list{
width: 100%;
}
.wx_search{
padding:25px 12px 12px 12px;
display: i.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0