Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

テキストの領域に表示する列の数

このプロパティは、おおよそテキストの指定された列数が表示されるように、使用されるフォントの平均文字幅に基づき、ウェブレットの幅を設定します。実際の幅を決定するのに使用されるメカニズムはブラウザごとに異なり、異なるブラウザではわずかに異なるサイズになります。

width_designプロパティが指定されている場合、それが優先され、colsプロパティは無視されます。

デフォルト値

50

有効値

列数を指定する数字

The number of columns in the textarea. This property sets the width of the weblet, based on the average character width for the font used, such that approximately the specified number of columns of text will be visible. Note that the mechanism used to determine the actual width is browser specific and will result in slightly different sizes on different browsers.

If the width_design property is specified, it takes precedence and the cols property is ignored.

Default value

50

Valid values

A number that specifies the number of columns.