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: inline-block; width: 100%; float:inherit; } .wx_search input{ width: 190px; height: 25px; background:#e5e2e2; border: 1px solid #d9d7d6; padding-left: 5px; outline: 0; float: left; } .wx_search button{ font-size:20px; font: initial; background:#e5e2e2; border: 1px solid #d9d7d6; float: right; color: #585858; outline: 0; height: 25px; width: 25px; } .wx_search button:hover{ background:#d0d0d0; border: 1px solid #b9b6b5; } .user_list li{ width: 100%; height: 64px; padding: 12px; } .friends_list li{ width: 100%; padding-top: 12px; border-bottom:1px solid #dddbdb; } .user_list li:hover, .icon_list li:hover{ background:#dedbdb; } .friends_box:hover{ background:#dedbdb; } .user_head{ background: #999; height: 40px; width: 40px; border-radius:2px; float:left; overflow: hidden; } .user_head img{ width: 40px; } .user_text{ float: left; height: 40px; width: 120px; padding-left: 8px; } .friends_text{ float: left; line-height: 40px; width: 180px; padding-left: 8px; } .friends_text p{ overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } .user_text p{ line-height: 20px; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } .user_name{ color: #333; font-size: 14px; } .user_message{ color: #999; font-size: 12px; } .user_time{ float: right; color: #999; font-size: 12px; } .zUIpanelScrollBox,.zUIpanelScrollBar{ width:7px; top:4px; right:0px; border-radius:5px; } .zUIpanelScrollBox{ background:black; opacity:0; filter:alpha(opacity=5); } .zUIpanelScrollBar{ background:rgba(0,0,0,.1); filter:alpha(opacity=80); } .office_text{ width: 100%; height:calc(100% - 62px); position: relative; display: inline-block; } .friends_list li > p{ font-size: 12px; color: #999; line-height: 26px; padding-left: 12px; } .friends_box{ padding: 12px 0; width: 100%; padding-left: 12px; display:flex; } .icon_list li{ width: 100%; height: 40px; } .icon{ float: left; height:100%; width:50px; position: relative; } .icon_list li span{ display: inline-block; line-height: 40px; } .icon img{ position: absolute; left: 50%; top: 50%; transform:translate(-50%,-50%); } .icon_active, .user_active{ background:#dedbdb; } /*******聊天窗口******/ .talk_window{ width:550px; height: 100%; float: left; background: #f5f5f5; } .windows_top{ padding-top:10px; height: 62px; border-bottom: 1px solid #e7e7e7; } .windows_top_box > span{ font-size: 18px; color: #333; line-height: 52px; padding-left: 30px; display: inline-block; } .windows_top_box{ width: 100%; height: 100%; position: relative; } .window_icon{ position:absolute; top:-10px; right: 0; } .window_icon li{ float: left; width:34px; height: 26px; position: relative; } .window_icon li:hover{ background: #e3e3e3; } .window_icon li a img{ position: absolute; left: 50%; top: 50%; transform:translate(-50.........完整代码请登录后点击上方下载按钮下载查看
网友评论0