问题
I am using the popup notification system described in the tutorial https://developer.mozilla.org/en/Using_popup_notifications . It is possible to change the background-color or text-color of the popup?
回答1:
The example code in the documentation creates a <popupnotification popupid="sample-popup">
tag in the browser window (obviously, popupid
attribute depends on the ID you specified when opening the notification), you can style it. Add the following code to a CSS file loaded by your browser overlay:
popupnotification[popupid="sample-popup"]
{
background-color: #123456;
}
回答2:
Yes you can change the colors, search for a stylesheet file to change the styling as per your requirements.
来源:https://stackoverflow.com/questions/9617562/can-i-set-the-background-color-in-a-firefox-extensions-popup-notification