Content-Length: 194850 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/cols

HTMLTextAreaElement: cols プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLTextAreaElement: cols プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

colsHTMLTextAreaElement インターフェイスのプロパティで、複数行テキストコントロールの見える幅を、平均的な文字幅における文字数で表す正の整数です。これは <textarea> 要素の cols 属性を反映します。

正の整数です。既定値は 20 です。

js
const textareaElement = document.getElementById("comment");
textArea.cols = 80;

仕様書

Specification
HTML
# dom-textarea-cols

ブラウザーの互換性

関連情報









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/cols

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy