开发者

How do I apply css to firefox extension elements?

开发者 https://www.devze.com 2023-02-10 22:37 出处:网络
I want to style 开发者_高级运维different elements of my firefox extension. This is how I include css:

I want to style 开发者_高级运维different elements of my firefox extension. This is how I include css:

<?xml-stylesheet href="chrome://global/skin/sidebar.css" type"text/css" ?>

E.g. I want to change the color of the

<tab label="Start"/>

elements.

I set

tab{
 color:red;
}

but it is not working. Any idea how to achieve that?


You have to reference the CSS file of your extension... I don't think your extension's name is global.

Should be something along the lines of chrome://yourextensionsname/skin/sidebar.css

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号