获取 Firefox 4 警报 CSS
Firefox 4 有自己的 CSS 样式,当屏幕上出现警报时应用该样式。我想知道如何获取/了解样式以便应用于我的 javascript 警报。
Firefox 4 has its own css style that applies when an alert is on the screen. I'd like to know how to get/know the style in order to apply to my javascript alerts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能:警报是系统特定的对话框,它们的外观取决于浏览器和操作系统。我知道 Firefox 4 使用自定义的非阻塞对话框,但您无法自己设置警报样式。
You can't: alerts are system-specific dialog boxes and it depends on browsers and OSes what they look like. I know Firefox 4 uses a custom, non-blocking kind of dialog, but you can't style alerts yourself.
您可能可以使用 DOM Inspector 来检查元素。我认为通过它你可以看到Firefox chrome层中任何东西的样式。
上面的评论 @Robert Antoni 并没有说他想改变样式,只是将它们用于他自己的对话框。
You could probably use the DOM Inspector to inspect the element. I think through that you can see the styles of anything in the chrome layer of Firefox.
And the comments above @Robert antoni didn't say he wanted to change the styles, just use them for his own dialog.