weiDian.ejs 4.0 KB
<!DOCTYPE html>
<html>

<head>
  <title></title>
  <meta http-equiv="X-UA-Compatible" content="IE=10">
  <meta name="viewport"
    content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="yes" name="apple-touch-fullscreen">
  <meta content="telephone=no,email=no" name="format-detection">
  <meta name="flexible" content="initial-dpr=2" />
  <meta charset="utf-8" />
  <style type="text/css">
    html,
    body {
      margin: 0;
      padding: 0;
      height: 100%;
    }

    @media only screen and (max-width: 750px) {
      .container {
        width: 100%;
        margin: 0 auto;
        position: relative;
      }

      .shop_top {
        width: 100%;
        height: 3.2rem;
        padding: 0.6rem 0;
        background: #111b4f;
      }

      .img_box {
        float: left;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 0.75rem;
        margin: 0 0.3rem 0.60rem 0.6rem;
        display: inline-block;
        overflow: hidden;
        background: white;
        position: relative;
      }

      .info_shopImg {
        width: 1.5rem;
        height: 1.5rem;
        position: absolute;
        top: 0;
        left: 0;
      }

      .info_name {
        width: 4.80rem;
        display: inline-block;
        float: left;
        font-size: 0.40rem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-top: 0.38rem;
        color: white;
      }

      .info_content {
        width: 100%;
        height: 3rem;
        position: absolute;
        top: 3.80rem;
        background: white;
        border-radius: 0.4rem;

      }

      .shop_content_top {
        display: block;
        padding: 0.4rem;
        font-size: 0.32rem;
        font-weight: 900;
        color: #333
      }

      .shop_content {
        padding: 0 0.40rem;
        font-size: 0.28rem;
        color: #666
      }
    }

    /* Small devices (portrait tablets and large phones, 600px and up) */
    @media only screen and (min-width: 1200px) {

      .container {
        width: 550px;
        height: 100%;
        margin: 0 auto;
        position: relative;
        border: 1px solid #ccc;
      }

      .shop_top {
        width: 100%;
        height: 200px;
        padding: 60px 0;
        background: #111b4f;
      }

      .img_box {
        float: left;
        width: 100px;
        height: 100px;
        border-radius: 50px;
        margin: 0 30px 30px 60px;
        display: inline-block;
        overflow: hidden;
        background: white;
        position: relative;
      }

      .info_shopImg {
        width: 100px;
        height: 100px;
        position: absolute;
        top: 0;
        left: 0;
      }

      .info_name {
        width: 320px;
        display: inline-block;
        float: left;
        font-size: 28px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin-top: 38px;
        color: white;
      }

      .info_content {
        width: 100%;
        height: 300px;
        position: absolute;
        top: 220px;
        background: white;
        border-radius: 40px;

      }

      .shop_content_top {
        display: block;
        padding: 40px 0 0 40px;
        font-size: 26px;
        font-weight: 900;
        color: #333;
        margin: 0;
      }

      .shop_content {
        padding: 0 40px;
        font-size: 20px;
        color: #666;
        word-wrap: break-word;
        word-break: break-all;
        white-space: normal;
      }

    }
  </style>
  <script type="text/javascript" src="/js/flexible.js"></script>
  </script>
</head>

<body>
  <div class="container">

    <div class="shop_top">
      <div class='img_box'>
        <img class='info_shopImg' src="<%=imgUrl%>" alt="">
      </div>
      <h3 class='info_name'><%=shop_name%></h3>
    </div>

    <div class='info_content'>
      <h4 class='shop_content_top'>店铺介绍</h4>
      <p class='shop_content'><%=shop_comment%></p>
    </div>
  </div>

</body>

</html>