zoukankan      html  css  js  c++  java
  • 手机端rem简单配置相关

    手机端rem简单配置相关

     1 <!DOCTYPE html>
     2 <html xmlns="http://www.w3.org/1999/xhtml">
     3 <head runat="server">
     4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     5     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
     6     <title></title>
     7     <link href="/Content/css/bootstrap.min.css" rel="stylesheet" />
     8     <style type="text/css">
     9         html {
    10             font-size: 625%;
    11         }
    12 
    13         body {
    14             font-size: .16rem; //相当于16px的含义
    15             background-color:#ffffff;
    16         }
    17 
    18         div, p, h1, h2, h3, h4, ul, li, dl, dd {
    19             margin: 0px;
    20             padding: 0px;
    21         }
    22 
    23         img.imgshow {
    24             max- 100%;
    25             display: block;
    26         }
    27 
    28         .content {
    29              100%;
    30             background-color: #f00;
    31             height: auto;
    32         }
    33         .product_info .price {
    34                 float: left;
    35                 color: #666;
    36                 letter-spacing: 0.02rem;
    37                 font-weight: normal;
    38                 font-size: 0.14rem;
    39         }
    40         .content-list dl {
    41             background-color: #ffffff;
    42             margin-bottom: 0.08rem;
    43         }
    44     </style>
    45 </head>

    已经在微信公众号H5中测试OK

    如有疑问或者错误的地方,请跟帖,本人会第一时间答复以及相互学习,谢谢!个人会不断的上传自己的学习心得!

    我的博客园地址:https://www.cnblogs.com/Fengge518

  • 相关阅读:
    文件内容作为服务器的响应练习
    request的请求体数据获取
    request请求头的数据
    Nodejs中流的操作
    response的数据
    http(二)
    Android SlidingMenu使用详解
    Android跨应用启动Service
    Android使用PopupMenu创建弹出式菜单
    HTML5 内联框架iFrame
  • 原文地址:https://www.cnblogs.com/Fengge518/p/14393641.html
Copyright © 2011-2022 走看看