Upgrade to Pro — share decks privately, control downloads, hide ads and more …

裏CSS.pdf

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

 裏CSS.pdf

Avatar for IMANISHI TOSHIFUMI

IMANISHI TOSHIFUMI

November 21, 2018
Tweet

More Decks by IMANISHI TOSHIFUMI

Other Decks in Technology

Transcript

  1. ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ background: linear-gradient(#e66465, #9198e5); background: linear-gradient(#e66465 20%, #9198e5 80%); カラーストップの設定

    background: linear-gradient(#e66465 50%, #9198e5 50%); ΧϥʔετοϓͷҐஔ͕ಉ͡Ґஔʹࢦఆ͞Εͨ৔߹ɺ࠷ॳʹ ࢦఆ͞Εͨ৭͔Β࠷ޙʹࢦఆ͞Εͨ৭΁ͷۃখ෯ͷάϥσʔ γϣϯ͕ੜ੒͞ΕΔɻͭ·Γɺͭͷ৭͸εϜʔζʹมԽ͢ ΔͷͰ͸ͳ͘ٸʹมԽ͢ΔΑ͏ʹදࣔ͞ΕΔɻ 同じカラーストップの設定
  2. ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ 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); 同じカラーストップの設定 同じカラーストップの値を 繰り返し記述する必要はない
  3. ͭͷ୯৭എܠΛάϥσʔγϣϯͰදݱ 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); 同じカラーストップの設定 同じカラーストップの値を 繰り返し記述する必要はない ͋ΔΧϥʔετοϓͷҐஔͷ஋͕ҎલͷΧϥʔετοϓΑΓ ΋খ͍͞৔߹ɺҎલͷΧϥʔετοϓͷதͰ࠷΋େ͖͍஋͕ ࢦఆ͞Ε͍ͯΔͱݟͳ͞ΕΔɻͭ·Γɺͭ໨ͷΧϥʔε τοϓΛθϩʹࢦఆ͢Δͱɺͭ໨ͱҰக͢ΔΑ͏ʹҐஔ͕ ௐ੔͞ΕΔɻ
  4. ετϥΠϓΛάϥσʔγϣϯͰදݱ 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%;
  5. ετϥΠϓΛάϥσʔγϣϯͰදݱ 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; 斜めの設定
  6. ετϥΠϓΛάϥσʔγϣϯͰදݱ 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; 斜めの設定 冗長
  7. ετϥΠϓΛάϥσʔγϣϯͰදݱ 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;