zoukankan      html  css  js  c++  java
  • 手机端sticker布局,底部按钮在屏幕底部

    <template>
      <div class="product-detail-container">
        <div class="detail">
          <div class="detail-wrapper">
            <div class="detail-main">
              高度没有满屏,则关闭按钮固定在屏幕底部,若满屏,则关闭按钮跟着页面底部
           <!--    <div>
                <p>高度没有满屏,则关闭按钮固定在屏幕底部,若满屏,则关闭按钮跟着页面底部</p>
                <p>高度没有满屏,则关闭按钮固定在屏幕底部,若满屏,则关闭按钮跟着页面底部</p>
                <p>高度没有满屏,则关闭按钮固定在屏幕底部,若满屏,则关闭按钮跟着页面底部</p>
                <p>高度没有满屏,则关闭按钮固定在屏幕底部,若满屏,则关闭按钮跟着页面底部</p>
              </div> -->
            </div>
          </div>
          <div class="detail-close">
            关闭
          </div>
        </div>
      </div>
    </template>
    <style  lang="scss"  type="text/css" scoped>
       .product-detail-container{
        //即组件最外层div
        position: relative;
        // box-sizing:border-box;
        .detail{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        .detail-wrapper{
          width: 100%;
          min-height: 100%;
          background:green;
          .detail-main{
            // margin-top: 60px; //留出头部的高度
            padding: 0 0 60px 0;//即colse的高度
          }
        }
        .detail-close{
          position: relative;
          width: 64px;
          height: 64px;
          margin: -60px auto; //注意点
          clear: both;
          font-size: 32px;
        }
        }
      }
    
    </style>
    <script>
       // 导入要用到的子组件  
        import {mapGetters} from 'vuex' 
        export default {  
        }  
    </script>
  • 相关阅读:
    Git上传文件不能超过100M的解决办法
    微信小程序 转发 分享功能(二)
    微信小程序 转发 分享功能(一)
    github上分支的合并
    微信小程序公告滚动通知
    django-blog:多对多查询
    正弦型函数的给出方式
    人教版|反三角函数
    在线|北京人大附中高一试题
    争鸣|深层次理解几何概型的概念和求解
  • 原文地址:https://www.cnblogs.com/lanyueff/p/7998346.html
Copyright © 2011-2022 走看看