[CS]背景と背景の色の違い
背景色と背景色の両方で背景色を指定できます.
ただし、背景色のみを指定してもよい.つまり、背景は色以外の背景オプションを指定してもよい.
背景には、他の色/画像/繰り返し/添付ファイル/場所、背景オプションを追加できます.
/* background 경우 다양한 background 옵션을 띄어쓰기로 구분해서 한번에 줄 수 있다. */
background: #color url("image url") no-repeat;
/* background-color은 단순히 배경색 옵션만 부여할 수 있다. */
background-color: #color;
background-color
background-image
background-repeat =====> background (shorthand property)
background-attachment
background-position
=>ただし、明確な観点から、各オプションの名前を書くとコードがわかりやすくなります.Reference
この問題について([CS]背景と背景の色の違い), 我々は、より多くの情報をここで見つけました https://velog.io/@gil0127/CSS-background-와-background-color의-차이テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol