| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/fontsize | [Back] [Original] |
Get to know MDN better
Avoid using this feature in new projects. HTML wrapper methods exist only for backwards compatibility. Use DOM APIs to create elements instead. This feature may be a candidate for removal from web standards or browsers.
Consider using the following features instead: DOM.
fontsize(size)
size1 7 1 7
<font size="size"> size " str </font>
fontsize() <font> str 7 size "-2" "+3" str
HTML
const contentString = "Hello, world";
document.body.innerHTML = contentString.fontsize(7);
HTML
<font size="7">Hello, world</font>
:
font
fontsize( ) HTML CSS element.style font-size
document.getElementById("yourElemId").style.fontSize = "7pt";
| ECMAScript 2027 LanguageSpecification # sec-string.prototype.fontsize |
Stringanchor()at()big()blink()bold()charAt()charCodeAt()codePointAt()concat()endsWith()fixed()fontcolor()fontsize()includes()indexOf()isWellFormed()italics()lastIndexOf()link()localeCompare()match()matchAll()normalize()padEnd()padStart()repeat()replace()replaceAll()search()slice()small()split()startsWith()strike()sub()substr()substring()sup()toLocaleLowerCase()toLocaleUpperCase()toLowerCase()toString()toUpperCase()toWellFormed()trim()trimEnd()trimStart()valueOf()[Symbol.iterator]()Object/Function| Web Proxy Viewer | New URL | Original Page |