css布局模仿手机版微信通讯录社交app页面效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局模仿手机版微信通讯录社交app页面效果代码
代码标签: 手机 版微 信 通讯录 社交 app 页面 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/mui.3.7.2.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/mui.indexedlist.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.min.css"> <style> * { margin: 0; padding: 0; border: 0; list-style: none; text-decoration: none; color: inherit; font-weight: normal; font-family: "微软雅黑"; box-sizing: border-box; font-style: normal; outline: none; } body { width: 100%; height: 100vh; overflow-x: hidden; background: #f9f9f9; } img { vertical-align: middle; max-width: 100%; } p { margin: 0; } a:hover,a:active,a:visited,a:link,a:focus { -webkit-tap-highlight-color: transparent; outline: none; text-decoration: none; } /*头*/ .mui-bar-nav { background: linear-gradient(to right,#009933,#009933); } .mui-bar-nav .mui-title { right: .3rem; left: .3rem; font-size: .36rem; color: #FFFFFF; } .mui-bar-nav .mui-title i { position: absolute; right: 0; display: inline-block; width: .31rem; height: 100%; background: url(//repo.bfw.wiki/bfwrepo/image/609235af316d2.png) center center no-repeat; background-size: 100%; } .mui-indexed-list-search { border-bottom: solid 1px #f9f9f9; background: #ffffff; padding: .05rem 0; } .mui-indexed-list-search input { background: #ffffff; } /*好友,群聊*/ .new-firend,.group { display: flex; justify-content: space-between; align-items: center; padding: 0 .28rem; height: .85rem; background: #FFFFFF; } .new-firend { border-bottom: solid 1px #f9f9f9; } .new-firend i.badge { display: inline-block; width: .3rem; height: .3rem; background: #ff6c00; border-radius: 50%; font-size: .22rem; color: #FFFFFF; text-align: center; line-height: .3rem; margin-right: .25rem; } .new-firend p,.group p { display: flex; align-items: center; } .new-firend i.head,.group i.head { flex-shrink: 0; display: inline-block; width: .54rem; height: .54rem; margin-right: .18rem; } .new-firend i.head { background: url(//repo.bfw.wiki/bfwrepo/image/608412c722be3.png) center center no-repeat; background-size: 100%; } .group i.head { background: url(//repo.bfw.wiki/bfwrepo/image/608412b2799e5.png) center center no-repeat; background-size: 100%; } /*右侧字母导航*/ .mui-indexed-list-bar,.mui-indexed-list-bar.active { background: transparent; top: 1.9rem; } .mui-indexed-list-bar a { color: #2f71aa; text-align: center; } .mui-indexed-list-bar a.active { background: #1c83e0; color: #FFFFFF!important; border-radius: 50%; } .mui-table-view-cell:after,.mui-table-view-divider:after { background-color: #f9f9f9; } /*主体列表*/ .mui-content { background-color: transparent; } .mui-indexed-list { border: none; } .mui-indexed-list-empty-alert { font-size: .3rem; } .mui-indexed-list-bar { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding-bottom: 2.5rem; } .mui-indexed-list-bar a { display: block; width: .25rem!important; height: .25rem!important; line-height: .25rem!important; font-size: .14rem; } .mui-indexed-list-bar a.active { background: #1c83e0; border-radius: 50%; } .mui-indexed-list-inner { padding-bottom: 1rem; } .mui-indexed-list-group { background: #f9f9f9; line-height: .35rem; padding: .06rem .3rem!important; font-size: .24rem; color: #333333; } .mui-table-view:after { display: none; } .mui-table-view:before,.mui-table-view-divider:before { background: transparent; height: 0; } .mui-table-view-cell { display: flex; align-items: center; width: 100%; padding: .2rem .3rem; padding-right: 1.15rem!important; } .mui-table-view-cell img { width: .8rem; height: .8rem; flex-shrink: 0; margin-right: .3rem; } .mui-table-view-cell .desc { width: 100%; padding-right: 1.15rem; } .mui-table-view-cell .name { font-size: .28rem; color: #333333; padding-bottom: .1rem; display: flex; position: relative; float: left; } .mui-table-view-cell .name.vip { font-size: .32rem; background-image: -webkit-linear-gradient(top,#ffa742,#ff3c26); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .mui-table-view-cell .name.vip i { position: absolute; right: -.36rem; top: 0.02rem; display: inline-block; width: .24rem; height: .21rem; background: url(//repo.bfw.wiki/bfwrepo/image/608b2f00b71f7.png) center center no-repeat; background-size: 100%; margin-left: .12rem; } .mui-table-view-cell .remark { clear: both; width: 100%font-size: .22rem; color: #888888; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } /*底部导航*/ .mui-bar-tab { display: flex; justify-content: space-between; width: 100%; padding: .15rem .2rem; height: 1rem; background: #FFFFFF; box-shadow: 0 -0.02rem .08rem rgba(0,0,0,.1) } .mui-bar-tab .mui-tab-item { display: flex; flex-direction: column; width: 100%; } .mui-bar-tab .mui-tab-item .mui-tab-label { font-size: .2rem; color: #555555; } .mui-bar-tab .mui-tab-item.mui-active { color: transparent; } .mui-bar-tab .mui-tab-item.mui-active .mui-tab-label { background-image: -webkit-linear-gradient(left,#009933,#009933); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .mui-bar-tab .mui-tab-item .icon { display: block; width: 100%; height: .4rem; margin: 0 auto; margin-bottom: .05rem; } .mui-bar-tab .mui-tab-item .icon.icon-message { background: url(//repo.bfw.wiki/bfwrepo/icon/60c348b20d105.png) bottom center no-repeat; background-size: .38rem auto; } .mui-bar-tab .mui-tab-item .icon.icon-book { background: url(//repo.bfw.wiki/bfwrepo/image/6084119ea913c.png) bottom center no-repeat; background-size: .37rem auto; } .mui-bar-tab .mui-tab-item .icon.icon-find { background: url(//repo.bfw.wiki/bfwrepo/image/608411cb92188.png) bottom center no-repeat; background-size: .37rem auto; } .mui-bar-tab .mui-tab-item .icon.icon-my { background: url(//repo.bfw.wiki/bfwrepo/image/608411f414394.png) bottom center no-repeat; background-size: .35rem auto; } .mui-bar-tab .mui-tab-item.mui-active .icon.icon-message { background-image: url(//repo.bfw.wiki/bfwrepo/icon/60c348c26f346.png); } .mui-bar-tab .mui-tab-item.mui-active .icon.icon-book { background-image: url(//repo.bfw.wiki/bfwrepo/image/6084118be8d9a.png); } .mui-bar-tab .mui-tab-item.mui-active .icon.icon-find { background-image: url(//repo.bfw.wiki/bfwrepo/image/608411b814b7e.png); } .mui-bar-tab .mui-tab-item.mui-active .icon.icon-my { background-image: url(//repo.bfw.wiki/bfwrepo/image/608411dea6906.png); } </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/flexible.js"></script> </head> <body> <header class="mui-bar mui-bar-nav"> <h1 class="mui-title">通讯录<i></i></h1> </header> <div class="mui-content"> <div id='list' class="mui-indexed-list"> <div class="mui-indexed-list-search mui-input-row mui-search"> <input type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="搜索"> </div> <div class="mui-indexed-list-bar"> <a>A</a> <a>B</a> <a>C</a> <a>D</a> <a>E</a> <a>F</a> <a>G</a> <a>H</a> <a>I</a> <a>J</a> <a>K</a> <a>L</a> <a>M</a> <a>N</a> <a>O</a> <a>P</a> <a>Q</a> <a>R</a> <a>S</a> <a>T</a> <a>U</a> <a>V</a> <a>W</a> <a>X</a> <a>Y</a> <a>Z</a> <a>#</a> </div> <div class="mui-indexed-list-alert"></div> <div class="mui-indexed-list-inner"> <!--新朋友--> <div class="new-firend"> <p> <i class="head"></i><span>新朋友</span> </p> <i class="badge">3</i> </div> <!--群聊--> <div class="group"> <p> <i class="head"></i><span>创建群聊</span> </p> </div> <div class="mui-indexed-list-empty-alert"> 没有数据 </div> <ul class="mui-table-view"> <li data-group="A" class="mui-table-view-divider mui-indexed-list-group">A</li> <li data-value="AXM" data-tags="axiaoming" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name vip"> 啊晓明<i></i> </p> <p class="remark"> 每个人的幸福不同,为什么要求自己世界不真理... </p> </div> </li> <li data-group="B" class="mui-table-view-divider mui-indexed-list-group">B</li> <li data-value="BFJ" data-tags="bilaoye" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 毕姥爷<i></i> </p> <p class="remark"> 时间是一切财富中最宝贵的财富。 </p> </div> </li> <li data-value="BJS" data-tags="bijiasuo" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 毕加索<i></i> </p> <p class="remark"> 世界上一成不变的东西,只有“任何事物世”这条... </p> </div> </li> <li data-group="C" class="mui-table-view-divider mui-indexed-list-group">C</li> <li data-value="CL" data-tags="cluo" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> C罗<i></i> </p> <p class="remark"> 世界上一成不变的东西,只有“任何事物世”这条... </p> </div> </li> <li data-group="D" class="mui-table-view-divider mui-indexed-list-group">D</li> <li data-value="DST" data-tags="dishitian" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 帝释天<i></i> </p> <p class="remark"> 时间是一切财富中最宝贵的财富。 </p> </div> </li> <li data-group="E" class="mui-table-view-divider mui-indexed-list-group">E</li> <li data-value="EZT" data-tags="yizhongtian" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 易中天<i></i> </p> <p class="remark"> 每个人的幸福不同,为什么要求自己世界不真理... </p> </div> </li> <li data-group="F" class="mui-table-view-divider mui-indexed-list-group">F</li> <li data-value="FDT" data-tags="fangdatong" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 方大同<i></i> </p> <p class="remark"> 每个人的幸福不同,为什么要求自己世界不真理... </p> </div> </li> <li data-group="G" class="mui-table-view-divider mui-indexed-list-group">G</li> <li data-value="GZB" data-tags="gezhouba" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 葛洲坝<i></i> </p> <p class="remark"> 时间是一切财富中最宝贵的财富。 </p> </div> </li> <li data-group="H" class="mui-table-view-divider mui-indexed-list-group">H</li> <li data-value="HXM" data-tags="huangxiaoming" class="mui-table-view-cell mui-indexed-list-item"> <img src="//repo.bfw.wiki/bfwrepo/image/5e0c6fb85d0a5.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_100,h_100,/quality,q_90" /> <div class="desc"> <p class="name"> 黄晓明<i></i> </p> <p class="remark"> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0