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.........完整代码请登录后点击上方下载按钮下载查看
网友评论0