Share
Embed
Transcript
16 slides
-
ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465, #9198e5); background: linear-gradient(#e66465 20%, #9198e5 80%); カラーストップの設定
background: linear-gradient(#e66465 50%, #9198e5 50%); 同じカラーストップの設定 -
ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465, #9198e5); background: linear-gradient(#e66465 20%, #9198e5 80%); カラーストップの設定
background: linear-gradient(#e66465 50%, #9198e5 50%); ΧϥʔετοϓͷҐஔ͕ಉ͡Ґஔʹࢦఆ͞Εͨ߹ɺ࠷ॳʹ ࢦఆ͞Εͨ৭͔Β࠷ޙʹࢦఆ͞Εͨ৭ͷۃখ෯ͷάϥσʔ γϣϯ͕ੜ͞ΕΔɻͭ·Γɺͭͷ৭εϜʔζʹมԽ͢ ΔͷͰͳ͘ٸʹมԽ͢ΔΑ͏ʹදࣔ͞ΕΔɻ 同じカラーストップの設定 -
ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465, #9198e5); background: linear-gradient(#e66465 20%, #9198e5 80%); カラーストップの設定
background: linear-gradient(#e66465 50%, #9198e5 50%); background: linear-gradient(#e66465 50%, #9198e5 0); 同じカラーストップの設定 同じカラーストップの値を 繰り返し記述する必要はない -
ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465, #9198e5); background: linear-gradient(#e66465 20%, #9198e5 80%); カラーストップの設定
background: linear-gradient(#e66465 50%, #9198e5 50%); background: linear-gradient(#e66465 50%, #9198e5 0); 同じカラーストップの設定 同じカラーストップの値を 繰り返し記述する必要はない ͋ΔΧϥʔετοϓͷҐஔͷ͕ҎલͷΧϥʔετοϓΑΓ খ͍͞߹ɺҎલͷΧϥʔετοϓͷதͰ࠷େ͖͍͕ ࢦఆ͞Ε͍ͯΔͱݟͳ͞ΕΔɻͭ·ΓɺͭͷΧϥʔε τοϓΛθϩʹࢦఆ͢ΔͱɺͭͱҰக͢ΔΑ͏ʹҐஔ͕ ௐ͞ΕΔɻ -
ετϥΠϓΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465 50%, #9198e5 0); background: linear-gradient(#e66465 50%, #9198e5
0); background-size: 100% 30px; グラデーションのサイズ設定 -
ετϥΠϓΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465 50%, #9198e5 0); background: linear-gradient(#e66465 50%, #9198e5
0); background-size: 100% 30px; グラデーションのサイズ設定 方向の設定 background: linear-gradient(90deg, #e66465 50%, #9198e5 0); background-size: 30px 100%; -
ετϥΠϓΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465 50%, #9198e5 0); background: linear-gradient(#e66465 50%, #9198e5
0); background-size: 100% 30px; グラデーションのサイズ設定 方向の設定 background: linear-gradient(90deg, #e66465 50%, #9198e5 0); background-size: 30px 100%; background: linear-gradient(45deg, #e66465 25%, #9198e5 0, #9198e5 50%, #e66465 0, #e66465 75%, #9198e5 0); background-size: 30px 30px; 斜めの設定 -
ετϥΠϓΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465 50%, #9198e5 0); background: linear-gradient(#e66465 50%, #9198e5
0); background-size: 100% 30px; グラデーションのサイズ設定 方向の設定 background: linear-gradient(90deg, #e66465 50%, #9198e5 0); background-size: 30px 100%; background: linear-gradient(45deg, #e66465 25%, #9198e5 0, #9198e5 50%, #e66465 0, #e66465 75%, #9198e5 0); background-size: 30px 30px; 斜めの設定 冗長 -
ετϥΠϓΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465 50%, #9198e5 0); background: linear-gradient(#e66465 50%, #9198e5
0); background-size: 100% 30px; グラデーションのサイズ設定 方向の設定 background: linear-gradient(90deg, #e66465 50%, #9198e5 0); background-size: 30px 100%; 斜めの設定 background: repeating-linear-gradient(45deg, #e66465 0, #e66465 25%, #9198e5 0, #9198e5 50%); background-size: 30px 30px;