开发者

Get Firefox 4 css for alerts

开发者 https://www.devze.com 2023-03-03 06:33 出处:网络
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开发者_Python百科 to apply to my javascript alerts.You can\'t: alerts a

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开发者_Python百科 to apply to my javascript alerts.


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.


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.

0

精彩评论

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

关注公众号