Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

兼容 IE11 #22

Closed
xiaweiss opened this issue May 9, 2020 · 0 comments
Closed

兼容 IE11 #22

xiaweiss opened this issue May 9, 2020 · 0 comments
Labels

Comments

@xiaweiss
Copy link
Owner

xiaweiss commented May 9, 2020

  1. 不支持 position: sticky
position: relative;
position: sticky;
  1. flex:1 时,IE 下的 flex-basis 为 0 需要再设置下
flex: 1;
flex-basis: auto;
  1. 绝对定位两个方向都需要声明

  2. flex 布局中,子元素不能有 padding,可以再加一层 wrap

  3. flex 布局中,子元素宽度需要设置,可以设为100%让它被压窄

  4. flex 布局中,如果用了 space-between,含绝对定位元素时。需要把绝对定位元素放中间
    排序为 左边元素、绝对定位元素、右边元素

  5. flex 布局中,子元素不要使用 margin: 0 auto

@xiaweiss xiaweiss added the Web label May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant