Giter Club home page Giter Club logo

Comments (4)

btea avatar btea commented on September 10, 2024

这个样式似乎就是为了防止页面抖动,你现在的问题是在这个样式下还是会页面抖动吗?

from element-plus.

hzh480048 avatar hzh480048 commented on September 10, 2024

header{position:fixed;width:100%} 这是一个导航条,当打开带有遮罩层的组件时,body上就会加上 width: calc(100% - 8px) (这个可能是为了解决body因滚动条出现导致的抖动) ,但是header是相对视口的,所以这个header依旧还是会出现抖动现象。有没有高手给出完美方案

from element-plus.

hzh480048 avatar hzh480048 commented on September 10, 2024

header{position:fixed;width:100%} 这是一个导航条,当打开带有遮罩层的组件时,body上就会加上 width: calc(100% - 8px) (这个可能是为了解决body因滚动条出现导致的抖动) ,但是header是相对视口的,所以这个header依旧还是会出现抖动现象。有没有高手给出完美方案
将body的overflow设置hidden,使用el-scrollbar组件header在fixed下会覆盖滑动条。但是好像也不是完美。

from element-plus.

btea avatar btea commented on September 10, 2024

@hzh480048 或许你可以尝试修改 append-to,不让弹出啊覆盖你的 header。示例

from element-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.