・色-背景関連プロパティ
- color : <color>
- 使用例
- color: red;
- color: rgb(255, 0, 0);
- color: #4488FF;
- background-color :
[ <color>
| transparent
]
- 使用例
- background-color: #008080;
- background-color: transparent;
- background-image :
[ <url>
| none ]
- 使用例
- background-image: url("./bgimg.jpg");
- background-image: none;
- background-repeat : [ repeat | repeat-x | repeat-y | no-repeat ]
- 使用例
- background-repeat: repeat-y;
- background-attachment : [ scroll | fixed ]
- 使用例
- background-attachment: fixed;
- background-position :
[ <percentage>
| <length>
]{1,2} | [top | center | bottom] || [left | center | right ]
- 使用例
- background-position: 0% 0%;
- background-position: 100% 100%;
- background-position: 23%;
- background-position: top right;
- background-position: center left;
- background-position: bottom center;
- background : [ <background-color> || <background-image> || <background-repeat> ||¥
- <background-attachment> || <background-position> ]
- ※backgroundプロパティは上記のbackground-***プロパティの組み合わせで実現できるため、
- 詳細な説明は省略します。
- 使用例
- background: url(chess.png) gray 50% repeat fixed;
|