{"action":"opened","issue":{"url":"https://api.github.com/repos/airyland/vux/issues/445","repository_url":"https://api.github.com/repos/airyland/vux","labels_url":"https://api.github.com/repos/airyland/vux/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/airyland/vux/issues/445/comments","events_url":"https://api.github.com/repos/airyland/vux/issues/445/events","html_url":"https://github.com/airyland/vux/issues/445","id":168900174,"number":445,"title":"tabbar 高亮展示图片的优化方法","user":{"login":"ryli","id":4973519,"avatar_url":"https://avatars.githubusercontent.com/u/4973519?v=3","gravatar_id":"","url":"https://api.github.com/users/ryli","html_url":"https://github.com/ryli","followers_url":"https://api.github.com/users/ryli/followers","following_url":"https://api.github.com/users/ryli/following{/other_user}","gists_url":"https://api.github.com/users/ryli/gists{/gist_id}","starred_url":"https://api.github.com/users/ryli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryli/subscriptions","organizations_url":"https://api.github.com/users/ryli/orgs","repos_url":"https://api.github.com/users/ryli/repos","events_url":"https://api.github.com/users/ryli/events{/privacy}","received_events_url":"https://api.github.com/users/ryli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-02T14:30:21Z","updated_at":"2016-08-02T14:30:21Z","closed_at":null,"body":"tabbar插件貌似没有提供高亮选中选中Tab图片的功能。\r\n想了一个方便的通过CSS解决的方法：\r\n```\r\n.weui_tabbar_icon img {\r\n  filter: grayscale(1);\r\n  -webkit-filter: grayscale(1);\r\n}\r\n.weui_tabbar_item.weui_bar_item_on .weui_tabbar_icon img {\r\n  filter: initial;\r\n  -webkit-filter: initial;\r\n}\r\n```\r\n效果：\r\n![image](https://cloud.githubusercontent.com/assets/4973519/17332135/470710d8-5900-11e6-957d-420a162473d5.png)\r\n"}}
{"actor":{"display_login":"ryli"}}