简体   繁体   English

应用程序抽屉没有霓虹灯动画页面上的内容

[英]app-drawer no scrim on neon-animated-pages as content

When the app-drawer has the drawer open a gray scrim is put on the content app-drawer抽屉打开抽屉时,内容上会出现灰色稀松布

scrim https://github.com/PolymerElements/app-layout/blob/master/app-drawer/app-drawer.html#L136 稀松布https://github.com/PolymerElements/app-layout/blob/master/app-drawer/app-drawer.html#L136

This works fine, but with a neon-animated-pages as content the scrim isn't applied. 这可以正常工作,但是使用neon-animated-pages作为内容时不会应用稀松布。 After some debugging the reason seems to be the position : absolute . 经过一些调试后,原因似乎是这样的position : absolute

https://github.com/PolymerElements/neon-animation/blob/master/neon-animated-pages.html#L36 https://github.com/PolymerElements/neon-animation/blob/master/neon-animated-pages.html#L36

When replacing the neon-animated-pages with a retangular div with position : absolute , this div is similar not covered with the scrim from the open app-drawer . 当将neon-animated-pages替换为position : absolute的矩形div时,该div类似于未由打开的app-drawer的稀松布覆盖的区域。

Anyone with ideas on how to get the neon-animated-pages to function together with the app-drawer ? 有人对如何使neon-animated-pagesapp-drawer一起发挥作用有想法吗?


Update, debugging more, by giving the neon-animated-pages a lower z-index the scrim is applied correct, so maybe a solution or workaround. 通过为neon-animated-pages赋予较低的z-index更新,调试更多,以确保正确应用稀松布,因此可以采用解决方案或解决方法。

通过给neon-animated-pages提供比app-drawer更低的z-index找到解决方案,然后正确地应用稀松布,其余应用程序可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM