javascript fontStretch property
Translation results:
font
英[fɒnt] 美[fɑ:nt]
n. Font; font; baptistery (located in a church, often made of stone ); (same font and size) a set of typefaces
Plural: fonts
stretch
英[stretʃ] 美[strɛtʃ]
v.Stretch;extend;continue;include
n.stretch;elasticity;a piece;a period of time
adj.scalable;elastic
Third person singular: stretches Plural: stretches Present participle: stretching Past tense: stretched Past participle: stretched
javascript fontStretch propertysyntax
Function: Used to stretch and deform the current font-family.
Syntax: Object.style.fontStretch=value
javascript fontStretch propertyexample
<html> <head> <script type="text/javascript"> function setFontStretch() { document.getElementById("p1").style.fontStretch="ultra-expanded"; } </script> </head> <body> <p id="p1">这是示例文字</p> <input type="button" onclick="setFontStretch()" value="Stretch font" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance