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

IE浏览器,使用路由骨架屏不显示 #82

Open
zovenChen opened this issue Jul 10, 2019 · 0 comments
Open

IE浏览器,使用路由骨架屏不显示 #82

zovenChen opened this issue Jul 10, 2019 · 0 comments

Comments

@zovenChen
Copy link

重现

  1. IE10+或者Edge浏览器
  2. 使用路由模式(hash), Skeleton DOM设置为display:none

问题

打包嵌入到html的script会根据route控制Skeleton DOM的显示,但貌似对IE无效,如下代码:

if (skeletonId === skeleton.id) {
  skeleton.el.style = 'display:block;';
}
else {
  skeleton.el.style = 'display:none;';
}

经过测试,IE对有 skeleton.el.style.display='block' skeleton.el.style.display='none'生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant