简体   繁体   中英

What's the default HTML font?

有一个问题,我被问到我在网站上使用什么字体,但问题是我没有初始化任何字体...我使用的默认字体名称是什么?

If you do not specify any fonts, the browser will select a default font for you. Generally, most browsers will generally default to "Times" (correction: not "Times New Roman")

Does your text look like this screenshot? https://drive.google.com/file/d/0B_Mm72dpCMKlcUlkQzI0TlpzcHc/edit?usp=sharing

It is browser-dependant and is stored in the default css of the browsers. Firebug, js-debugger in explorer, or the embedded debuggers of other browsers can say it on a simple examination of a textual element on any simple (fe css-less) HTML page.

这取决于您使用的浏览器。如果还更改了字体样式以及浏览器中的其他设置,则该设置将适用于字体。如果您注意到不同的手持设备使用了不同的字体大小和字体样式,例如移动供应商。

If you did not specify any font, then you did not really “use” any font. This would leave it to browsers to use their default fonts. The default font depends on the browser and on user settings. Traditionally, most browsers have used Times New Roman as the default font (or, on Mac platforms, Times), but nowadays many modern smallish devices often have browsers with other default fonts (eg, Droid Sans in Android browser).

For a given browser, the situation can usually be determined by opening its tools for setting default fonts. Typically, a modern browser lets the user specify the type of font used as default (sans-serif, serif, monospace) and also specify for each type the default font of that type.

The situation is somewhat more complicated: If the page contains characters that have no glyphs in the default font, browsers are expected to use some substitute fonts for them, and modern browers generally do. But they apply different lists of fallback fonts.

This really depends on the browser. See here for a good list: http://www.w3schools.com/cssref/css_websafe_fonts.asp

When a website doesn't specify a font, each browser uses its own default font.

To find out what it is, go into the browser's settings and look at the font settings. My browsers all had Times New Roman as the default font. It might be different depending on the fonts installed on different computers.

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