您现在的位置是:网站首页> 编程资料编程资料

HTML5仿手机微信聊天界面_html5_网页制作_

2023-11-11 498人已围观

简介 这篇文章主要为大家详细介绍了HTML5仿手机微信聊天界面的关键代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

给大家带来的是HTML5仿手机微信聊天界面,截图效果如下:

源代码如下:

XML/HTML Code复制内容到剪贴板
  1. >  
  2. <html>  
  3. <head>  
  4.     <meta charset="UTF-8">  
  5.     <title>HTML5模拟微信聊天界面title>  
  6.     <style>  
  7.   /**重置标签默认样式*/   
  8.         * {   
  9.             margin: 0;   
  10.             padding: 0;   
  11.             list-style: none;   
  12.             font-family: '微软雅黑'   
  13.         }   
  14.         #container {   
  15.             width: 450px;   
  16.             height: 780px;   
  17.             background: #eee;   
  18.             margin: 80px auto 0;   
  19.             position: relative;   
  20.             box-shadow: 20px 20px 55px #777;   
  21.         }   
  22.         .header {   
  23.             background: #000;   
  24.             height: 40px;   
  25.             color: #fff;   
  26.             line-height: 34px;   
  27.             font-size: 20px;   
  28.             padding: 0 10px;   
  29.         }   
  30.         .footer {   
  31.             width: 430px;   
  32.             height: 50px;   
  33.             background: #666;   
  34.             position: absolute;   
  35.             bottom: 0;   
  36.             padding: 10px;   
  37.         }   
  38.         .footer input {   
  39.             width: 275px;   
  40.             height: 45px;   
  41.             outline: none;   
  42.             font-size: 20px;   
  43.             text-indent: 10px;   
  44.             position: absolute;   
  45.             border-radius: 6px;   
  46.             right: 80px;   
  47.         }   
  48.         .footer span {   
  49.             display: inline-block;   
  50.             width: 62px;   
  51.             height: 48px;   
  52.             background: #ccc;   
  53.             font-weight: 900;   
  54.             line-height: 45px;   
  55.             cursor: pointer;   
  56.             text-align: center;   
  57.             position: absolute;   
  58.             right: 10px;   
  59.             border-radius: 6px;   
  60.         }   
  61.         .footer span:hover {   
  62.             color: #fff;   
  63.             background: #999;   
  64.         }   
  65.         #user_face_icon {   
  66.             display: inline-block;   
  67.             background: red;   
  68.             width: 60px;   
  69.             height: 60px;   
  70.             border-radius: 30px;   
  71.             position: absolute;   
  72.             bottom: 6px;   
  73.             left: 14px;   
  74.  

-六神源码网