I'm very curious what font iOS actually chooses when setting font-family: sans-serif
. I can't seem to find the answer anywhere, so I'm asking here.
body {
font-family: sans-serif; /* What font will iOS choose? */
}
I'm very curious what font iOS actually chooses when setting font-family: sans-serif
. I can't seem to find the answer anywhere, so I'm asking here.
body {
font-family: sans-serif; /* What font will iOS choose? */
}
The default sans-serif font on iOS 6 and iOS 7 is Helvetica. I've set up a test with this CSS:
div.default {
font-family: sans-serif;
}
div.helvetica {
font-family: 'Helvetica', serif;
}
The result is the very same. I also inspected it using the developer tools, to make sure the styles are applied correctly.
iOS 6
iOS 7
© 2022 - 2024 — McMap. All rights reserved.