Chrome theme: How to change the colour of the URL text when hovered over a link on a web page?

空扰寡人 提交于 2019-12-09 12:21:25

问题


I am very new to developing Chrome themes. Everything went well but when I hover mouse pointer over a link, the URL displayed at the bottom left side is not readable because of its font color! How can I change the font color?


回答1:


The color of the status bar is derived from the color of the toolbar and the color of its text is from the tab_text. Well it was in Chrome 6 but Im pretty sure the things where one color comes from another color and still all the same. Have a look at an old doc that lists those things....
https://docs.google.com/document/pub?id=1jt9vdUY9O5IMm6Zoi2Kz0LWFfFZpvP69qjy6PoGsEoA
...like I said I havent updated it in ages (Chrome 6), but those things should still be the same.




回答2:


Here's an updated answer:

I discovered that some themes that are generated with Chrome Apps like, My Chrome Theme, create JSON for "toolbar". By default it gives it a transparency, like so: "toolbar":[228,228,228, 0.6],

You'll need to remove the last number, which is the alpha. So it just looks like this: "toolbar":[228,228,228],

Now it works perfectly. Enjoy!




回答3:


Add color to <a> tag in CSS or inline style.

a { color: #FF0000; text-decoration: none; }

    a:hover 
    {
             color:#00FF00; 
             text-decoration:none; 
             cursor:pointer;  
     }


来源:https://stackoverflow.com/questions/11888241/chrome-theme-how-to-change-the-colour-of-the-url-text-when-hovered-over-a-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!