[ ホーム | 一覧 | 検索 | 最終更新 | ヘルプ ] [ 新規 ]

KAWANO's PukiWiki Plus! - Lecture/JouhouC2008/8th/bg_position のバックアップ(No.1)

AND OR
  • バックアップ一覧
  • 差分 を表示
  • 現在との差分 を表示
  • 現在との差分 - Visual を表示
  • ソース を表示
  • Lecture/JouhouC2008/8th/bg_position へ行く。
    • 1 (2008-05-29 (木) 03:41:11)

背景画像の表示位置の設定

ブロックの背景に設定した画像の表示位置を設定するには、 background-positionプロパティを設定します。

background-position: 横の表示位置 縦の表示位置
background-position: 横の表示位置

background-positionプロパティは、 背景画像のウィンドウの中での表示位置を指定します。 表示位置には次のような設定ができます。

  • 左上を基点とした単位つき数字: 100px, 200pxなど
  • 左上を基点とした%
  • left(横方向の0%と同じ)
  • right(横方向の100%と同じ)
  • center(横・縦方向の50%と同じ)
  • top(縦方向の0%と同じ)
  • bottom(縦方向の100%と同じ)
body {
  background-image: url(bgimage.gif);
  background-repeat: no-repeat;
  background-position: center center;
}
  • background-positionの例(right top)
    background-positionの例
  • background-positionの例(left bottom)
    background-positionの例


次へ進んでください。


[前へ] [目次へ] [次へ]

メニュー

  • トップ
  • 授業
  • PukiWiki Log
  • Install Log
  • 道具箱
  • セキュリティ情報
  • RSSアンテナ

大学関係リンク

  • Webメール
  • 健康システム学科
  • 情報メディアセンター
  • 兵庫大学

今日の5件
  • FrontPage(33)
  • Lecture/CompPracC32005/10th(1)
  • Lecture/CompPracC2005/8th/example(1)
  • Lecture/CompPracR2004/11th(1)
  • Lecture/CompPracC2006/11th(1)
最新の5件
2016-04-08
  • Lecture/timetable_2016
  • Lecture
  • FrontPage
2015-09-30
  • Lecture/timetable_2015
2015-04-04
  • MenuBar

total: 2469
today: 1
yesterday: 1
now: 11


リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
http%3A%2F%2Fhs-www.hyogo-dai.ac.jp%2F~kawano%2F%3FLecture%25252FJouhouC2008%25252F8th%25252Fbg_position
Founded by Minoru Kawano.
Powered by PukiWiki Plus! 1.4.7plus-u2-i18n. HTML convert time to 1.196 sec.
Valid XHTML 1.1