Это список безопасных шрифтов:
значения свойства:
p {
font-size
:
20px
;
}
.a {
font-family
Arial
,
Verdana
.c {
"Courier New"
p { font-size: 20px; } .a { font-family: Arial, Verdana; } .c { font-family: "Courier New"; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
type
"text/javascript"
src
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></
</
body
p
class
"a"
>Hello World!</
br
id
"p1"
"b"
"c"
/*JavaScript*/
document.getElementById("p1").style.fontFamily = "Georgia, Times New Roman";
/*jQuery*/
$(document).ready(function () {
$(".b").css({ "font-family": "Comic Sans MS" });
});