聚合物纸 - 菜单 - 按钮更改图标的默认大小 [英] polymer paper-menu-button change the default size of icon

查看:138
本文介绍了聚合物纸 - 菜单 - 按钮更改图标的默认大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有设置聚合物纸张菜单按钮元素的大小的方法。我认为是图标大小设置为24px。

Is there way to set the size of polymer paper-menu-button element. I think it is the icon size is set to 24px. I wish to have it as 20px but I cannot find a way to do it.

感谢
Dennis

Thanks Dennis

推荐答案

我试过它,它的工作。
将此样式添加到包含您的< paper-menu-button> 元素的Polymer元素。

I tried it and it worked. Add this style to the Polymer element containing your <paper-menu-button> element.

  paper-menu-button /deep/ core-icon[role=img] {
    height: 20px;
    width: 20px;
  }

我添加了 [role = img] c $ c>以提高选择性。

I added [role=img] to increase the selectivity.

这篇关于聚合物纸 - 菜单 - 按钮更改图标的默认大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆