Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CSS入門 情報の形を視覚化する
Search
Atsushi Tadokoro
May 07, 2014
0
440
CSS入門 情報の形を視覚化する
Atsushi Tadokoro
May 07, 2014
Tweet
Share
More Decks by Atsushi Tadokoro
See All by Atsushi Tadokoro
デザイン言語総合講座 - クリエイティブ・コーディング
tado
0
2.7k
Tumblrを使う4 - Webサイトを構成する、固定ページとタグ
tado
0
1.8k
Tumblrを使う3- カスタムHTMLテーマの作成
tado
0
420
Processing.jsによるデータの可視化と生成的表現
tado
1
1.7k
Tumblrを使う2 - テーマをカスタマイズする
tado
0
340
Touchéの仕組みを理解 - ProcessingとArduinoの連携
tado
0
2.3k
Github Pagesで作品を公開、Automatic Page Generatorでサイトを生成
tado
0
1.5k
TumblrでWebサイトを作成
tado
0
690
bmaw14 第2回: Touchéセンサーを使う1 Touchéセンサーを作成する
tado
0
2.1k
Featured
See All Featured
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Into the Great Unknown - MozCon
thekraken
32
1.5k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Writing Fast Ruby
sferik
627
61k
Thoughts on Productivity
jonyablonski
67
4.3k
The Pragmatic Product Professional
lauravandoore
31
6.3k
A Modern Web Designer's Workflow
chriscoyier
693
190k
How GitHub (no longer) Works
holman
310
140k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
Transcript
ܳज़ใԋशσβΠϯ 8FC ୈ̑ճɿ$44ೖ ใͷܗΛࢹ֮Խ͢Δ ݄ ౦ژज़େֶܳज़ใηϯλʔ ".$ ୲ɿాॴ३
$44ҙຯͱߏ )5.- ʹදݱΛ༩͑Δ ‣ $44ˠ8FCϖʔδʹɺදݱΛՃ͑Δ ‣ )5.-ͷߏͷදݱ͔Βಠཱ͍ͯ͠Δ ‣ ใͷ͔ͨͪΛࢹ֮Խ͢Δػೳ )5.-
ϚʔΫΞοϓ ҙຯɾߏ $44 ελΠϧγʔτ දݱɾσβΠϯ
$44ͱ ‣ $44$BTDBEJOH4UZMF4IFFU ‣ ΧεέʔσΟϯάɾελΠϧɾγʔτ ‣ ࠷͘༻͞Ε͍ͯΔɺελΠϧγʔτݴޠͷͻͱͭ ‣ ݱࡏ$44͔Β$44ͷҠߦظ ‣
͜ͷतۀͰɺجຊ෦$44ͰɺඞཁʹԠͯ͡$44Λ ͱΓೖΕ͍͖ͯ·͢
$44ʹΑΔදݱͷࢦఆ ‣ දࣔͷྲྀΕ )5.-จॻ )5.-จॻ )5.-จॻ
$44ʹΑΔදݱͷࢦఆ ‣ දࣔͷྲྀΕ 8FCϒϥβ ཁૉΛղ πϦʔߏ ελΠϧγʔτͷࢦఆ )5.-จॻ )5.-จॻ )5.-จॻ
$44ʹΑΔදݱͷࢦఆ ‣ දࣔͷྲྀΕ 8FCϒϥβ ཁૉΛղ πϦʔߏ ελΠϧγʔτ $44 ελΠϧγʔτͷࢦఆ
)5.-จॻ )5.-จॻ )5.-จॻ
$44ʹΑΔදݱͷࢦఆ ‣ දࣔͷྲྀΕ 8FCϒϥβ ཁૉΛղ πϦʔߏ ཁૉ͝ͱʹ ελΠϧΛ ద༻ ελΠϧγʔτ
$44 ελΠϧγʔτͷࢦఆ )5.-จॻ )5.-จॻ )5.-จॻ
$44ʹΑΔදݱͷࢦఆ ‣ දࣔͷྲྀΕ 8FCϒϥβ ཁૉΛղ πϦʔߏ ཁૉ͝ͱʹ ελΠϧΛ ద༻ ελΠϧγʔτ
$44 දࣔ ελΠϧγʔτͷࢦఆ )5.-จॻ )5.-จॻ )5.-จॻ
ελΠϧγʔτΛར༻͢ΔϝϦοτ ‣ ෳͷจॻશମʹҰͨ͠σβΠϯΛద༻Ͱ͖Δ ‣ ෳจॻͷཧ͕༰қʹͳΔ ‣ ग़ྗϝσΟΞʹ͋ΘͤͨɺදݱελΠϧͷઃఆ ‣ )5.-ͷׂΛɺҙຯͷߏΛදݱ͢Δ͜ͱʹప͢Δ͜ͱ͕Ͱ ͖Δ
‣ ελΠϧγʔτ͕දݱ෦ΛશͯҾ͖ड͚Δ
ελΠϧઃఆͷجຊ ! ! ηϨΫλ\ϓϩύςΟ^ ! ! ‣ ηϨΫλɿରΛબ͢Δ෦ ‣ ϓϩύςΟɿઃఆ͢ΔελΠϧͷੑ࣭
‣ ৭ɺେ͖͞ɺॴFUD ‣ ɿ࣮ࡍͷ
ελΠϧઃఆͷجຊ ྫɿ ! p {color:blue} ! ! ‣ ద༻͢ΔཁૉˠQཁૉ ஈམ
‣ ద༻͢ΔϓϩύςΟˠDPMPS ৭ ‣ ద༻͢ΔˠCMVF ੨
ελΠϧఆٛΛ͢Δํ๏ ‣ ֎෦$44ϑΝΠϧʹΑΔελΠϧઃఆ ‣ ֎෦ϑΝΠϧʹελΠϧΛهड़͢Δ ‣ )5.-ϑΝΠϧ͔ΒɺελΠϧϑΝΠϧͷॴΛࢦఆ͢ Δ ! ‣
)5.-ଆͷఆٛྫ ‣ IFBEཁૉͷதͰࢦఆ͢Δ ! <head> <link rel="stylesheet" href="style.css" /> </head>
‣ IFBEཁૉͷTUZMFཁૉʹهड़ ‣ IFBEཁૉͷதʹTUZMFཁૉΛՃ͑ͯએݴ͢Δ ‣ UZQFଐੑͰελΠγʔτͷछྨΛࢦఆ͢Δ ελΠϧఆٛΛ͢Δํ๏ <head> <style type="text/css">
p {color : blue} </style> </head>
ελΠϧఆٛΛ͢Δํ๏ ‣ ΠϯϥΠϯTUZMFଐੑ ‣ )5.-ϑΝΠϧͷλάͷϓϩύςΟͱͯ͠ॻ͖ࠐΉ ‣ TUZMFlzͱ͍͏ࢦఆͰελΠϧγʔτͱͯ͠ೝࣝ͞Ε Δ <p style="color:red">͜Ε৭</p>
ʮΧεέʔσΟϯάʯͷҙຯ ‣ ΧεέʔσΟϯάͱ ‣ ελΠϧΛෳՕॴͰઃఆ͢Δ͜ͱ͕Մೳ ‣ ಉ͡ཁૉλΠϓͷηϨΫλͰҟͳΔελΠϧએݴ͕͞Εͨ߹ ‣ ҰఆͷϧʔϧͰ༏ઌॱҐΛ͚ͭͯɺελΠϧΛద༻͢Δ
ελΠϧͷछྨ ‣ ࡞ऀελΠϧ ! ‣ 8FCϖʔδͷ࡞ऀ͕ࢦఆͨ͠ελΠϧ ! ‣ ֎෦$44ϑΝΠϧʹΑΔελΠϧઃఆ ‣
IFBEཁૉͷTUZMFཁૉʹهड़ ‣ ΠϯϥΠϯTUZMFଐੑ
ελΠϧͷछྨ ‣ ϢʔβʔελΠϧ ‣ ϒϥβͷڥઃఆͱͯ͠ɺϒϥβϢʔβ͕ࢦఆͨ͠ελ Πϧ !
ελΠϧͷछྨ ‣ ϒϥβͷඪ४ελΠϧ ‣ ϒϥβʹ͋Β͔͡ΊΈࠐ·Ε͍ͯΔελΠϧઃఆ ‣ ԿελΠϧΛࢦఆ͍ͯ͠ͳ͍ͱࣗಈతʹద༻͞ΕΔ
ελΠϧద༻ͷ༏ઌॱҐ ‣ ελΠϧద༻ͷ༏ઌॱҐ ࡞ऀελΠϧ ϢʔβελΠϧ ϒϥβجຊελΠϧ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ·ͣɺ࣮ࡍʹ$44Λهड़ͯ͠ΈΔ ‣ ઌि࡞ͨ͠ɺࣗݾհͷ$44Λར༻͢Δ ‣ $44ϑΝΠϧͷ४උ ‣ )5.-ͱಉ͡֊ͷϑΥϧμʹzDTTzϑΥϧμΛ৽ن࡞ ‣
lEFGBVMUDTTzͱ͍͏ϑΝΠϧΛ࡞ ‣ lEFGBVMUDTTzΛlDTTzʹอଘ JOEFYIUNM DTT ϑΥϧμ EFGBVMUDTT JNH ϑΥϧμ ը૾ϑΝΠϧ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ࣗݾհͷ)5.-ͷྫ ‣ ·ͩελΠϧγʔτద༻͍ͯ͠ͳ͍ঢ়ଶ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ )5.-ϑΝΠϧʹҎԼͷهड़ΛՃ͢Δ ‣ IFBEཁૉͷதʹɺMJOLཁૉͱͯ͠$44ͷॴΛࢦఆ͢Δ <!DOCTYPE html> <html lang="ja"> <head>
<meta charset="utf-8" /> <title>自己紹介</title> <link rel="stylesheet" href="css/default.css" type="text/css" /> </head> ...
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ DTTϑΥϧμͷzEFGBVMUDTTzʹҎԼͷهड़Λ͢Δ ‣ Ϧϩʔυ͢ΔͱԿ͕มԽ͢Δ͔ h1 { font-size: 1.75em; }
h2 { font-size: 1.25em; } p { font-size: 0.8em; } li { font-size: 0.8em; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ελΠϧద༻ޙɿจࣈͷେ͖͕͞มԽ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ͞ɺେ͖͞ͷ୯Ґ ୯Ґ ୯Ґ QY ϐΫηϧ QU ϙΠϯτ FN
ཁૉͷจࣈαΠζΛͱͨ͠ͱ͖ͷൺ ཁૉͷจࣈαΠζΛͱͨ͠ͱ͖ͷൺ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ͞Βʹจࣈͷ৭Λࢦఆͯ͠ΈΔ h1 { font-size: 1.75em; color: #3399cc; }
h2 { font-size: 1.25em; color: #3399cc; } p { font-size: 0.8em; color: #333333; } li { font-size: 0.8em; color: #333333; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ελΠϧద༻ޙɿจࣈͷ৭͕มԽ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ৭ͷࢦఆํ๏ɿਐͰࢦఆ͢Δํ๏ ‣ 3(#ΛɺͦΕͧΕʙ⒎·ͰͷਐͰදݱ͢Δ ‣ ࠷ॳʹγϟʔϓlzΛ͚ͭΔ ‣ ྫɿ ‣
D ‣ 3ˠ ‣ (ˠ ‣ #ˠD
ࢀߟɿίϯϐϡʔλͷ৭ͷࢦఆ ‣ ৭Λࢦఆ͢Δʹ ‣ 3 ( #
੨ ͷࡾݪ৭Ͱࢦఆ͢Δ ‣ Ճ๏ࠞ৭ ޫͷࡾݪ৭Ͱ͋Δ͜ͱʹҙ ޫͷࡾݪ৭ ৭ྉͷࡾݪ৭
ࢀߟɿίϯϐϡʔλͷ৭ͷࢦఆ ‣ ৭ͷ֊ௐ ! ‣ 3CJU ਐ ⒎ ਐ
‣ (CJU ਐ ⒎ ਐ ‣ #CJU ਐ ⒎ ਐ ! ‣ 3(#ͷΈ߹ΘͤͰɺԿ৭ͷ৭Λ࠶ݱͰ͖Δͷ͔ ‣ ਐͰɺ ‣ YY CJU ‣ ਐͰɺ ‣ ‣ ਐͰɺ ‣ ⒎⒎⒎
ࢀߟɿίϯϐϡʔλͷ৭ͷࢦఆ ‣ ਐͰͷ৭ͷࢦఆ ‣ 3⒎ (⒎ #⒎ ff (0ʙ255) ff
(0ʙ255) ff (0ʙ255)
$44Ͱ༻͍ΒΕΔجຊ୯Ґɿ৭ ‣ ਐʹΑΔදݱ ‣ 33((##ɿ33ɺ((ɺ##Λʙ''ͷൣғͰࢦఆ ‣ 3(#ɿ3(#Λʙ'ͷൣғͰࢦఆ ! ‣ ਐʹΑΔදݱ
‣ SHC 3 ( # ɿ3(#ΛͦΕͧΕʙͷൣғͰࢦఆ ! ‣ ύʔηϯτʹΑΔදݱ ‣ SHC 3 ( # ɿ3(#ΛͦΕͧΕʙͰࢦఆ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ จࣈͷഎܠ৭Λࢦఆ͢Δ h1 { font-size: 1.75em; color: #3399cc; }
h2 { font-size: 1.25em; background-color: #3399cc; color: #ffffff; } p { font-size: 0.8em; color: #333333; line-height: 1.75em; } li { font-size: 0.8em; color: #333333; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ จࣈͷഎܠ৭Λࢦఆ͢Δ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ৭ͱഎܠޮՌʹؔ͢ΔϓϩύςΟ ϓϩύςΟ ద༻Օॴ DPMPS ཁૉͷจࣈͷ৭ ৭ͷ୯Ґ CBDLHSPVOEDPMPS
ཁૉͷഎܠͷ৭ ৭ͷ୯Ґ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ߦἧ͑Λมߋͯ͠ΈΔIཁૉΛηϯλϦϯά h1 { font-size: 1.75em; color: #3399cc; text-align:
center; } h2 { font-size: 1.25em; background-color: #3399cc; color: #ffffff; } p { font-size: 0.8em; color: #333333; } li { font-size: 0.8em; color: #333333; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ߦἧ͑Λมߋ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ߦؒΛ֦͛Δ h1 { font-size: 1.75em; color: #3399cc; text-align:
center; } h2 { font-size: 1.25em; background-color: #3399cc; color: #ffffff; } p { font-size: 0.8em; color: #333333; line-height: 1.75em; } li { font-size: 0.8em; color: #333333; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ߦؒΛ֦͛Δ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ࣼମͷઃఆ ... ! li { font-size: 0.8em; color:
#333333; } address{ font-size: 0.75em; font-style: italic; }
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ࣼମͷઃఆ
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ςΩετʹؔ͢ΔελΠϧ ϓϩύςΟ ద༻Օॴ GPOUTJ[F ϑΥϯτͷେ͖͞ αΠζͷ୯Ґ GPOUTUZMF
ࣼࣈମͷઃఆ OPSNBM JUBMJD PCMJRVF GPOUXFJHIU จࣈͷଠ͞ ʙ OPSNBM CPME UFYUEFDPSBUPJO ԼઢͳͲͷ০ OPOF VOEFSMJOF PWFSMJOF MJOFUISPVHI
$44Λ༻͍ͨจࣈͷσβΠϯ ‣ ࠓͷ·ͱΊ ͜Ε͚ͩԱ͑ͯཉ͍͠Ϧετ ! ‣ $44ͷجຊ୯Ґ ‣ ৭ɿ''''''
‣ େ͖͞ɿFN QU QY ! ‣ ςΩετͷදࣔʹؔ͢Δ$44ϓϩύςΟ ‣ େ͖͞ɾଠ͞ɿGPOUTJ[F GPOUXFJHIU ‣ ৭ɿDPMPS CBDLHSPVOEDPMPS ‣ จࣈͷମࡋɿGPOUTUZMF UFYUEFDPSBUJPO ‣ ߦૹΓɿUFYUBMJHO ‣ ߦؒɿMJOFIFJHIU