Can I set the background color in a Firefox extension's popup notification?

大憨熊 提交于 2019-12-20 05:58:24

问题


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

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