css布局实现移动端手机端企业聊天界面效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现移动端手机端企业聊天界面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>职场工作公司IM聊天软件联系人页面模板</title> <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" /> <meta content="yes" name="apple-mobile-web-app-capable" /> <meta content="black" name="apple-mobile-web-app-status-bar-style" /> <meta content="telephone=no" name="format-detection" /> <style> html, body { color: #333; margin: 0; height: 100%; font-family: "Myriad Set Pro", "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-weight: normal; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } a { text-decoration: none; color: #000; } a, label, button, input, select { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } img { width: 100%; height: auto; display: block; border: 0; } body { background: #f4f4f4; color: #666; } html, body, div, dl, dt, dd, ol, ul, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, button, fieldset, form, input, legend, textarea, th, td { margin: 0; padding: 0; } a { text-decoration: none; color: #08acee; } button { outline: 0; } img { border: 0; } button, input, optgroup, select, textarea { margin: 0; font: inherit; color: inherit; outline: none; } li { list-style: none; } a { color: #666; } .clearfix::after { clear: both; content: "."; display: block; height: 0; visibility: hidden; } .clearfix { } .divHeight { width: 100%; height: 10px; background: #f5f5f5; position: relative; overflow: hidden; } .r-line { position: relative; } .r-line:after { content: ''; position: absolute; z-index: 0; top: 0; right: 0; height: 100%; border-right: 1px solid #D9D9D9; -webkit-transform: scaleX(0.5); transform: scaleX(0.5); -webkit-transform-origin: 100% 0; transform-origin: 100% 0; } .b-line { position: relative; } .b-line:after { content: ''; position: absolute; z-index: 2; bottom: 0; left: 0; width: 100%; height: 1px; border-bottom: 1px solid #e2e2e2; -webkit-transform: scaleY(0.5); transform: scaleY(0.5); -webkit-transform-origin: 0 100%; transform-origin: 0 100%; } .arrow { position: relative; padding-right: 0.8rem; } .arrow span { font-size: 0.8rem; color: #9b9b9b; } .arrow:after { content: " "; display: inline-block; height: 6px; width: 6px; border-width: 2px 2px 0 0; border-color: #848484; border-style: solid; -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0); position: relative; top: -2px; position: absolute; top: 50%; margin-top: -4px; right: 2px; border-radius: 1px; } .flex { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; padding: 15px; position: relative; } .flex-box { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; font-size: 14px; color: #333; } /* 必要布局样式css */ .flexView { width: 100%; height: 100%; margin: 0 auto; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; } .scrollView { width: 100%; height: 100%; -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; padding-bottom: 50px; } .navBar { height: 44px; position: relative; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; z-index: 102; background: #00aaf2; } .navBar-item { height: 44px; min-width: 25%; -webkit-box-flex: 0; -webkit-flex: 0 0 25%; -ms-flex: 0 0 25%; flex: 0 0 25%; padding: 0 0.9rem; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; font-size: 0.7rem; white-space: nowrap; overflow: hidden; color: #808080; position: relative; } .navBar-item:first-child { -webkit-box-ordinal-group: 2; -webkit-order: 1; -ms-flex-order: 1; order: 1; margin-right: -25%; font-size: 0.7rem; color: #fff; } .navBar-item:last-child { -webkit-box-ordinal-group: 4; -webkit-order: 3; -ms-flex-order: 3; order: 3; -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; } .center { -webkit-box-ordinal-group: 3; -webkit-order: 2; -ms-flex-order: 2; order: 2; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; height: 44px; width: 50%; margin-left: 25%; } .center-title { text-align: center; width: 100%; white-space: nowrap; overflow: hidden; display: block; text-overflow: ellipsis; font-size: 0.95rem; color: #fff; } .icon { width: 20px; height: 20px; display: block; border: none; float: left; background-size: 20px; background-repeat: no-repeat; } .icon-return { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAACh0lEQVRoQ+3ZMW8TMRQH8PcOsTBQISExVCIRCwgWFvZ+hZYBpIrEcTYkBsTGlI2VDamL3YEBpWJoR1BJaOlXYEzyDYp0bMRGRjnJoDuWs/1e3EbKeHf55b33vzsb4YJ98IJ54RKce8XZV1gIcQ8AviDiD2vtC631pzZFYQ2WUt611p4CwM0VcqqU2soSXIN1ztdKqTfZgRuw75RSz9tg3bHsWjomlh04NpYVOAWWDbjf7z8oimLipbH7bUopJdvO7L/Hk8+wwyLiCSLe8H6cww4BwGYFTo0lbWkKLBmYCksCrsNaa99rrZ/FmFnS0GrCdrvd3mg0MqEDqu58yVKaAzZZSwshHgLAsX/rcW2csrJVtaNXeIWdIuL16qJU2OgVrsMCwEGn03mSamaThVYTtizLp+PxeJkioJKFFldslJbmjA0O5o4NCm7AHpZluUM5s1FCSwjxCAA++7ceADiczWaPJ5PJL6qAihJaUspdY8w+Il7xLsASG6SlhRA/EfGa91BxNJ/Pd7hVNtiT1mAwOAeADXdCa637Hi0Wi3zBUsptY8wHRLzqwIh/nlbzbWmna0roLEOrmo11QQd9W1oHdFDwOrR3cLCH/uuFn0uQRQE7dMPKJHl6RwNzRUcF/w9N9VIRHVyhazbLDihWP5KAHbphOzQ5OhmYCzopmAM6OZgaTQL20FMAuOUtHESfaTLwCn3HWnuWEk0KpkCTg1OjWYArtDHmKyJu+jMdeh+KDdghh8NhZ7lcfvPRoXcaWYFToNmBY6NZgj20m+nb3pr3W631yzY7GWzBDtXr9TaLojjz0N+VUvezBXvoPQBw0Fda649Zg9vg6o5l3dKhse58l+AY/yqnc/4GvNDoTFOq8FwAAAAASUVORK5CYII="); } .m-slider { overflow-x: hidden; width: 100%; position: relative; } .slider-wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; width: 100%; height: 100%; -webkit-transform: translate3d(0px, 0px, 0px); transform: translate3d(0px, 0px, 0px); position: relative; z-index: 1; -webkit-transition-property: -webkit-transform; transition-property: -webkit-transform; transition-property: transform; transition-property: transform, -webkit-transform; } .slider-item { width: 100%; height: 100%; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; background: #f6f6f6; } .slider-item img { width: 100%; height: auto; display: block; border: none; } .slider-pagination { text-align: right; position: absolute; width: 100%; z-index: 2; right: 0; bottom: 10px; pointer-events: none; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: end; -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; } .slider-pagination > .slider-pagination-item { margin: 0 .25rem; width: 8px; height: 8px; display: inline-block; border-radius: 100%; background-color: rgba(255,255,255,0.4); } .slider-pagination > .slider-pagination-item.slider-pagination-item-active { background-color: #fff; border-radius: 100%; } .palace { padding: 0.5rem 0; position: relative; overflow: hidden; } .palace-grid { position: relative; float: left; padding: 1px; width: 20%; box-sizing: border-box; margin: 5px 0; } .palace-grid-icon { width: 30px; height: 30px; margin: 0 auto; } .palace-grid-icon img { display: block; width: 100%; height: 100%; border: none; } .palace-grid-text { display: block; text-align: center; color: #333; font-size: 0.85rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding-top: 0.2rem; } .palace-grid-text h2 { font-size: 0.8rem; font-weight: normal; color: #666666; } .m-actionsheet { text-align: center; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000; background-color: #EFEFF4; -webkit-transform: translate(0, 100%); transform: translate(0, 100%); -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } .mask-black { background-color: rgba(0, 0, 0, 0.4); position: fixed; z-index: 500; bottom: 0; right: 0; left: 0; top: 0; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; z-index: 998; } .actionsheet-action { display: block; margin-top: .15rem; font-size: 0.28rem; color: #555; height: 1rem; line-height: 1rem; background-color: #FFF; } .m-actionsheet { text-align: center; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 10005; background-color: #ffffff; -webkit-transform: translate(0, 100%); transform: translate(0, 100%); -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } .actionsheet-toggle { -webkit-transform: translate(0, 0); transform: translate(0, 0); } .actionsheet-item { display: block; position: relative; font-size: 0.85rem; color: #555; height: 2rem; line-height: 2rem; background-color: #FFF; } .actionsheet-item { display: block; position: relative; font-size: 0.85rem; color: #555; height: 2rem; line-height: 2rem; background-color: #FFF; } .coll-cancel a { height: 45px; line-height: 45px; font-size: 12px; background: #f9f9f9; display: block; text-align: center; width: 100%; } .coll-share-img { width: 38px; height: 38px; margin: 0 auto; } .coll-share-img img { width: 100%; height: auto; display: block; border: none; } .coll-share-box { position: relative; overflow: hidden; padding: 10px 0; } .coll-cancel a { height: 45px; line-height: 45px; font-size: 12px; background: #f9f9f9; display: block; text-align: center; width: 100%; } .coll-share-item { position: relative; float: left; padding: 8px 10px; width: 33.333%; box-sizing: border-box; font-size: 12px; height: 85px; } .rule { position: absolute; right: 0; top: 1rem; background: #54ca9a; border-radius: 50px 0 0 50px; font-size: 0.8rem; padding: 0.2rem 0.6rem; color: #fff; } .icon-add { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAFT0lEQVRoQ+2aj7EXNRCAsxWoFQgVCBWIFagVCBWgFagVCBUIFQgVCBUIFQgVoBWs8zGbN/nlNtncXfIYeGbmNzzmcrl82b/ZRNINa3LDeNP/wJ+6xJdKWFVvpZS+TSndSyl9bovJ32V7k1LiR3uVUnomIi9XLfx0YFW9Y5DfpZT4+0j7B3D7vRQR/j+lTQM20N9MmlMmZ4MA+4uIPJ4x6GlgU9ufU0r3Byb0OqXkSQtN+Cx4H7UH/OnAd5pdTgGrKhL9sTOB5ymlF2aX2U7d7qqKjWPf/DCHLxvjYucPRIR/d7dDwDa5321i9UffIgmDPGx7qgo4WvODQ8W434sIi7mr7QY2WwW2dkj/Im0RebJrBkFnMxnG/Nrpyvd22fYuYIP9swgxeQ7YFR8/LNFokVQVNQe8tvUnIvIgej8/Hwa2lf6rgl0i1dbkbQ6Eq6+qPr+KCGYUtiFgs1kkW6oxsPeOOo9wZp0Oqoqka9vGkYXmNAr8R+WgPhhsXgcHGnP6JhJACKyqqApxtmx3o4HPSHD0XVXFS5fOjNDH3Jq+pAtsqvx3Zbc/icij0Umt7GfzIx6XMbtrzxFwbSvPRQRveaqZx2WSjNdNSKIPWeTAmeaGdG+3pNwENo+IdHPDbu9MmCDJBHGc9kZEbkdQ0XNVReMeFv2eioib6vaAa+kOu/7eBFWVsMKW8X0TkdCPDACTlqIpZYxGyhvtcT/WkO6tGYlF7WhmALMgjnN9LCKbPL8FXKod402Rrk3swrNOBEbK7wptcM2lBXyhduYETjmXPJFVErbFDOfdAtZipV6LyNHKxcb8FgMTQUiSctuE0A2whYzypWnqvFKlbexarV+JyN1y1T3gOrMiXdu972x51pUSNmgSkavNRe0jPOA6pn0xwztfhw0b8EU4HQFe4kWvEbiroZ6ES+C3IkJtOWyqSsy7Sig6L+AAc42abiPmQoQgroZ1LCceX5ikB0wsyxOiJlwXzj3PC0SZz4YLdKDDUB5vtTD27rld7JM94DIkjQLX4eAAT/jKUHh0gC+ijAfMbiPnpBu33vG+OAvAo/pySOZ0oJ5NzSxU/yMqfaOdFov9UYclq4BcObtPMfHoaqgHvGyntDq1tPFLp7sJqx4wcbesdAx56lFPtDK1dPYBm8pHa7dEoC8LY9PseDFwXaXh/Ikt41VrAdf59LRK5WLgMmmiBrep0rSA68xpSrFtpQ2rau173EJer4hXF7mHjjIiW14lYVXF75R5v7ut7QGTQ5c5aVjVj2BNwmwyOEinDW9OemM72VXT0UaF+IvNtO1Yeif+IbOdFqB+mA1HnWG6GMAi1fpUs1m0iIBrKfPtqRWQcIWCDqoKbFlz6+6qwiK4U9UfOqU7CzLyvqpyglGeMISnIyPA7I1Ru/IQGlVH0stO/CPgxqlm6FhDYHM0qAzQ5dYPaAL7lHp1BFg+b9weap4nhYmH93EnbaPbtaq3OTw8fH1QNlQNYcJDEs4L4AT3/Gj3bZo9Ei20zLs9RHGAqxdD5rUL2D7M6pJ61pUNVJwU9FSYqRfCpMpRqHdphYtv90dhd0u4kLRn0/kxwNSRToEXoMT9ssqZv+OeDkaas1vCBTSTYCfiXRijG87s/Y3Y0evAdkzLeNTGWjcNCD1I9WIXFIHm54eBC3Amhoq37kaWksfO6toyC4fGkDFFNfDTF+BOA5tdM2lUj9+KqiW2+uismRy24Zb6mN0hcRxbS9VHtY9LqqgtoNNi/RQJN+I26pmvA6Oy9XXB+jUAAcPZvZghTW9ey4A7i7Cx01VwHxx4VJdX9rtWCa8EGR37xgH/B89xhFvgqzNaAAAAAElFTkSuQmCC'); } .search { padding: 0.5rem; } .search-box { background: #fff; border-radius: 3px; position: relative; } .search-box input { text-align: center; width: 100%; font-size: 0.8rem; padding: 0.4rem 0; border: 1px solid #E8E8E8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aLGmNm1ZJ8/Gi/yDjituVpbkpemj9da01vPtESaknZtCtzNmkKBEhd4JF3kmwKlfW0JihKd6aDyUyhQ4pIHNyAfKKVIbTo33EQnxudwEqZQ8kuNLirP3MRpMHl7MNHx5cNzAXkoPt0ELFdRDdkvfaev4uGqdedyYvc6is3bWWBPZXDjFctKkzjpxmqhN3d0TxAAkuq/61RzrTU91c6yuFjpelW6cvmTyWSu/tuFUJN754qVbiOwjboW3oJDkcw6JUuviQBA9fJZg0yqEIKPaW5FAQCS33PaOATrV744XQfBGpa7dxDYOghqJ5rVjTYB7WZFBJKiyhV4ENiqNvV0UFeN24YQVe1vQ8IcMAAk7x8F3ASNiNdFURw/RWWTMS/6tCToaOCApCnDuuz3+1frBLd2TJrmtjtFQycBE7TttKGWJK7HitqLRst00jGdfGxLgw869sEgGbiyRyYwmTNVyqVtDyU5vGkPpZTyttIUAHiBiNM+TNujtVD/9l2BHuio22Np4EravV6PeizqL/Jt+KjpGk1e2BP+BqFXAq7IbKmUHst9nXSph3ArhDgLtUPZtib39miEbgW4orH2Ta+PFOcmSb1qVyzLchR68qyfng86z/M9zoG2CuyK0Up+19oqWFulaWPqk6YAJsuycb/fH6/i3T3Q4zzPD9111wqcqserzPc04SxUa7YGODbZ2SpgF5raNcqy3K/7hK0DJmhS77IsqQd7oV97K4GbfMEz8Cqe8mf43/8BI1hVaoEimFMAAAAASUVORK5CYII='); position: absolute; width: 16px; height: 16px; margin-left: -35px; left: 50%; top: 0.4rem; background-size: 16px; } .palace-one { background: #fff; padding: 0.5rem 1rem; } .palace-one .palace-grid { width: 25%; } .palace-one h2 { font-size: 0.7rem; } .palace-one .palace-grid-icon { width: 35px; height: 35px; } .flex-clear { background: #fff; } .flex-clear h3 { font-weight: normal; font-size: 0.9rem; } .flex-clear span { color: #868686; font-size: 0.8rem; } .img-sml { width: 35px; height: 35px; margin-right: 0.5rem; } .me-list { background: #fff; } .img-sml img { border-radius: 100%; } .flex-box span { color: #777777; font-size: 0.75rem; } .text { font-size: 0.7rem; color: #afafaf; } .footer { width: 100%; position: relative; z-index: 100; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: c.........完整代码请登录后点击上方下载按钮下载查看
网友评论0