问题描述
我在Laravel 3项目中包含了这个桌面通知插件。
I've included this plugin for desktop notifications in my Laravel 3 project.
它工作正常,只有问题是我找不到一种方式style 通知!
It works fine, only problem is i can't find a way to "style" the notifications!
设置桌面通知的样式是否可能?
Is styling the desktop notifications even possible? If it is can someone please point out for me how it is done!
推荐答案
不幸的是,这个库只使用 .createNotification()
而不是 .createHTMLNotification()
,但是Google只是在版本28上删除了.createHTMLNotification http://developer.chrome.com/extensions/desktop_notifications.html =nofollow>此警告:
Unfortunately this library uses only .createNotification()
and not .createHTMLNotification()
, but Google just dropped .createHTMLNotification() support on version 28. There's a warning about this:
警告:Web通知API中的webKitNotifications.createHTMLNotification()已弃用。新的网络通知API仅允许文本。 Chrome通知API将很快升级为稳定,并且网络通知将更新为使用新的丰富通知格式。
但它的做法不同,使用此。
But it is doing it differently, using this rich notifications.
但是这只是为了chrome,所以如果你需要它为所有浏览器,你将必须编写自己的实现或找到另一个库来帮助你。
But this is just for chrome, so if you need it for all browsers, you will have to write your own implementation or find another library to help you.
这篇关于为HTML5桌面通知设置样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!