javascript fontsize() method
Translation results:
font
英[fɒnt] 美[fɑ:nt]
n. Font; font; baptistery (located in a church, often made of stone ); (same font and size) a pair of typefaces
Plural: fonts
size
英[saɪz] 美[saɪz]
n. Scale; size, size; glue, paste; huge, large number
vt. Arrange by size; change the size of…; glue, sizing; paint
adj.A certain size
Third person singular: sizes Plural: sizes Present participle: sizing Past tense: sized Past participle: sized
javascript fontsize() methodsyntax
Function: Display the string according to the specified size.
Syntax: stringObject.fontsize(size)
Notes: The size parameter must be a number from 1 to 7.
javascript fontsize() methodexample
<!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.fontsize(7)) </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance