问题及解决方案纪录片——疑难杂症

1.问题

安卓机,键盘拉起顶起绝对定位等元素?
方案:vue中实现,主要依赖window.onresize

    export default {
        data () {
            return {
                hidshow: false,
                docmHeight: 0, // 默认屏幕高度
              showHeight: 0, // 实时屏幕高度
            }
        },
        watch: {
           showHeight() {
                if (this.docmHeight >= this.showHeight) {
                    this.hidshow = false
                } else {
                    this.hidshow = true
                }
           }
       },
        mounted() {
        window.onresize = () => (() => {
          if (!this.isResize) {
            this.docmHeight = document.documentElement.clientHeight
            this.isResize = true
          }
          this.showHeight = document.body.clientHeight
        })()
      },
    }

2.css记录

多行文本超出影藏…

.*{
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp:2;
}
点赞
  1. LesAvarly说道:

    Renova where to buy cialis online safely Preisvergleich Cialis 20 Mg 12 St Buy Accutane Online From Canada

  2. Kelgini说道:

    Comprar Cialis Madrid En Mano Cialis 20mg Conditionnement online pharmacy Canada Cilias Propecia Preparacion Buy Valtrex Canada

  3. LesAvarly说道:

    Purchasing Levaquin Overnight Zythromax Vs Cephalexin Viagra Quelle Dose cialis 20mg for sale Propecia 0.5 Mg Avodart Is Amoxicillin Good

  4. Kelgini说道:

    Viagra Per Uccelli Discount Generic Amoxicilina Internet Website Free Shipping Topical Propecia Thinning Hair 20mg levitra india Buy Liquid Tamoxifen Citrate Para Q Es El Medicamento Cephalexin Propecia Canada Pharmacy Online

发表评论

电子邮件地址不会被公开。 必填项已用*标注