Code Monkey home page Code Monkey logo

wechat-chat-interface's Introduction

Wechat-Chat-Interface

基于原生CSS的微信聊天界面 | WeChat chat interface based on native CSS


效果截图

demo image


如何使用

  1. 替换img文件夹下两个头像图片

  2. 编写一个json格式的聊天文件

    • leftPrefix/rightPrefix: 可自行指定发送方前缀标识符(后期以此作为分隔)

    • recordGroup

      • time
      • records: 前缀之后即为显示在屏幕上的聊天信息
      {
          "leftPrefix": "[left-person]",
          "rightPrefix": "[right-person]",
          "recordGroup": [
              {
                  "time": "2020年8月11日",
                  "records": [
                      "[left-person]hello",
                      "[right-person]world",
                  ]
              }
          ]
      }
  3. 如果需要修改手机尺寸,理论上只需要修改最上层div.WechatRecordGroup的尺寸,其他大小可以进行大致的自适应*(但很不推荐,并没有非常关注自适应)*


开发环境

  • 操作系统: macOS Catalina 10.15.5
  • 开发语言: HTML + CSS + JavaScript

关于作者

姓名👤 张喆 | doubleZ
学校🏫 同济大学
联系方式✉️ [email protected]

wechat-chat-interface's People

Contributors

doublez0108 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

romy2012

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.