我正在使用polymer编写一个移动web应用程序,将使用phonegap打包后在android设备上运行。我正在使用polymer中的paper-tabs和core-animated-pages来显示切换效果。在设备上,除了选项卡触摸时的ripple效果外,所有东西都很好用。它使整个界面看起来很丑并且运行缓慢。我该如何在paper-tabs(以及其他任何纸张元素)中禁用涟漪效果?
我尝试在paper-tabs源代码中设置noink属性为true,如下所示,但不起作用。
我尝试在paper-tabs源代码中设置noink属性为true,如下所示,但不起作用。
Polymer('paper-tabs', {
/**
* If true, ink ripple effect is disabled.
*
* @attribute noink
* @type boolean
* @default false
*/
noink: true,
#no-ripple paper-ripple { color: rgba(0,0,0,0); }
在整个页面范围内禁用:html /deep/ paper-ripple { color: rgba(0,0,0,0); }
- Peter Burns