Versions Compared

Key

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

Specifies the width of the input in pixels.入力幅をピクセルで指定します。

Tip
Tip: Always specify both the height and width properties for images. If height and width are set, the space required for the image is reserved when the page is loaded. However, without these properties, the browser does not know the size of the image, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the images load).

Default value

Blank - the browser will calculate the width after it loads the image.

Valid values

ヒント:イメージのheightプロパティと widthプロパティの両方を指定します。Heightとwidthが設定されている場合、イメージに必要なスペースはページがロードされる時に確保されます。しかし、これらのプロパティがないと、ブラウザは画像のサイズが分からず、そのため適切なスペースを確保できません。効果は、ページ・レイアウトがロード中(イメージのロード中)に変化することです。

デフォルト値

ブランク -ブラウザはイメージをロードした後に幅を計算します。

有効値

整数値Any integer value.