| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/fixed | [Back] [Original] |
Get to know MDN better
HTML wrapper methods exist only for backwards compatibility. Use DOM APIs to create elements instead.
fixed()
<tt> str </tt>
HTML
const contentString = "Hello, world";
document.body.innerHTML = contentString.fixed();
HTML
<tt>Hello, world</tt>
:
tt
fixed() HTML CSS element.style font-family
document.getElementById("yourElemId").style.fontFamily = "monospace";
| ECMAScript 2027 LanguageSpecification # sec-string.prototype.fixed |
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 |