vue开发问题1

1.
  //select下拉框在ios移动端需要点击两次才能选中的问题修复
  .el-scrollbar {
    > .el-scrollbar__bar {
    opacity: 1 !important;
    }
  }

ie92.  ie怪异盒 margin padding 异常 box-sizing: content-box;开启正常盒子模型3.   element el-carousel 轮播没有动画

4.   img标签的图片 需要 100% height也需要100% 不是等比例
5.   定位 不能设置百分比
6.   谷歌浏览器 #ffaadddd 这种多的颜色码 可以识别 前面6位颜色值 ie不行
7.  template标签 不可以使用v-show
8.  ie8 没有bind 解决 html文件 html标签上面加script标签 里面 新写自定义的bind
9.   ie8 没有addeventlistner
10.   ie el-table 不是默认100%宽度
11.   ie9路由跳转页面显示空白
      解决方法:app.vue
        if (checkIE()) {
          const win = window.document
          console.log(win)
          if (win.attachEvent) {
            win.attachEvent('onhashchange', function() {
            const currentPath = window.location.hash.slice(1)
            if (this.$route.path !== currentPath) {
            this.$router.push(currentPath)
            }
          })
        } else {
          window.addEventListener( hashchange', () => {
          const currentPath = window.location.hash.slice(1)
          if (this.$route.path !== currentPath) {
            this.$router.push(currentPath)
           }
          },false
            )
          }
        }
12.   table中 操作点击之后有些行数据可以修改 但是修改之后采用不走接口的话 数据不更新 forceupdate/set/nextTick都不行的时候
    this.$delete(obj,isEdit) 即可

脑子是个好东西,希望我也有o(╥﹏╥)o
原文地址:https://www.cnblogs.com/xy88/p/15031727.html