简体   繁体   中英

Change alert box font size in Firefox 15

I have a demo I am doing of a learn to code site for high school students ( http://codeavengers.com/javascript ) with media present. The Prime Minister will be writing his first line of code which is essentially hello world in an alert box.

I would like to use the standard Firefox alert box, but would like to increase the font size dramatically so everyone can see.

Is there an easy way (eg modifying a browser setting or config file) to increase the font size of the standard alert box.

If this can not be done easily in Firefox, is there an easy way in Chrome, Opera or Safari?

如果你使用Windows 7,按'赢'+'+'调出放大镜。

(Sorry, too long to reasonably leave as a comment.)

If, for that first lesson or so, you do not need window.alert to block, you could replace the window.alert function with one of your own to display the string in a floating div.

There is no way I know of to make this block, so it has limited use.

To rewrite the function you could either

  • Copy off the web page locally and introduce a bit of your own Javascript.

or

  • Use a userscript/GreaseMonkey script to replace the function.

Might be enough to squeak you by.

There are a few Firefox addons that allow you to change the system fonts. I used https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/?src=search

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM