font

English [f?nt] US [fɑ:nt]

n. ??; ???(?? ?? ????)(??? ?? ? ??) ??? :fonts

color

英['k?l?(r)] 美[?k?l?]

n. <Beauty> ??? ???? ?????...; ??? ??; ??? ???

3?? ??: colors ??: colors ?? ??: Colouring ?? ??: Colour ?? ??: Coloured

?????? ????() ??? ???

??: ??? ??? ?? ???? ?????.

??: ??stringObject.fontcolor(color)

????: color ?????. ???? ?? ??? ?????. ?? ?? ??(???), RGB ?(rgb(255,0,0)) ?? 16??(#FF0000)?? ???.?

?????? ????() ??? ?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
//字符串顯示為紅色
    var str="Hello world!"
    document.write(str.fontcolor("Red"))

</script>

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????