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 入門 - Web 前端程式開發實務
Search
Joseph Chiang
May 02, 2013
Programming
8
400
CSS 入門 - Web 前端程式開發實務
Joseph Chiang
May 02, 2013
Tweet
Share
More Decks by Joseph Chiang
See All by Joseph Chiang
不断归零的前端人生 - 2016 中国软件开发者大会
josephj
1
350
Let's Redux!
josephj
4
250
Automatic Functional Testing with Selenium and SauceLabs
josephj
2
220
From Hacker to Developer
josephj
1
86
tmuxinator
josephj
0
170
JavaScript Promise
josephj
0
160
Be an Internet Person
josephj
9
510
F2E Evolution
josephj
55
3.2k
F2E for Enterprise
josephj
42
5.6k
Other Decks in Programming
See All in Programming
距離関数を極める! / SESSIONS 2024
gam0022
0
280
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
210
Click-free releases & the making of a CLI app
oheyadam
2
110
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
330
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
900
型付き API リクエストを実現するいくつかの手法とその選択 / Typed API Request
euxn23
8
2.2k
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
1.9k
RubyLSPのマルチバイト文字対応
notfounds
0
120
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
シェーダーで魅せるMapLibreの動的ラスタータイル
satoshi7190
1
480
初めてDefinitelyTypedにPRを出した話
syumai
0
400
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
720
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
BBQ
matthewcrist
85
9.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
The Invisible Side of Design
smashingmag
298
50k
A better future with KSS
kneath
238
17k
Site-Speed That Sticks
csswizardry
0
23
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Transcript
Copyright © 2012 FITPI. All rights reserved. ∄ൔᆭૅ$44 1 భ؊۽ӱῘứℯ↩⇪‣
ᾣ℩ğᾠקდKPTFQIK
Copyright © 2012 FITPI. All rights reserved. 很好上⼿手,重點在了解有哪些屬性 2 $44ࠎẒᆩℰ
Copyright © 2012 FITPI. All rights reserved. ྛᾇ$44 3 ᆰࢤᄝṌ⚓⤨ႨTUZMFℾྟ
Inline CSS
Copyright © 2012 FITPI. All rights reserved. ྛᾇ$44 3 ᆰࢤᄝṌ⚓⤨ႨTUZMFℾྟ
<p style="屬性名稱:屬性值;">...</p> Inline CSS
Copyright © 2012 FITPI. All rights reserved. ళೆൔ$44 4 ᆰࢤᾞ$44⇔ᄝ)5.-⤨֥ቔم
Embedded CSS
Copyright © 2012 FITPI. All rights reserved. ళೆൔ$44 4 ᆰࢤᾞ$44⇔ᄝ)5.-⤨֥ቔم
TUZMFTUZMFṌ⚓ Embedded CSS
Copyright © 2012 FITPI. All rights reserved. ళೆൔ$44 4 ᆰࢤᾞ$44⇔ᄝ)5.-⤨֥ቔم
<style type="text/css" media="顯⽰示媒介名稱"> 選擇器 { 屬性名稱:屬性值; } </style> UZQFॖസ NFEJBᄝޅ⊕ૂࢺ↾ൕ cႆіὨQSJOUFS cểₔ∦ଞTDSFFO c≁℟൞ಆ҆BMM TUZMFTUZMFṌ⚓ Embedded CSS
Copyright © 2012 FITPI. All rights reserved. ళೆൔ$44 4 ᆰࢤᾞ$44⇔ᄝ)5.-⤨֥ቔم
<style type="text/css" media="顯⽰示媒介名稱"> 選擇器 { 屬性名稱:屬性值; } </style> UZQFॖസ NFEJBᄝޅ⊕ૂࢺ↾ൕ cႆіὨQSJOUFS cểₔ∦ଞTDSFFO c≁℟൞ಆ҆BMM TUZMFTUZMFṌ⚓ $44⤨ಸ Embedded CSS
Copyright © 2012 FITPI. All rights reserved. ళೆൔ$44 4 ᆰࢤᾞ$44⇔ᄝ)5.-⤨֥ቔم
<style type="text/css" media="顯⽰示媒介名稱"> 選擇器 { 屬性名稱:屬性值; } </style> UZQFॖസ NFEJBᄝޅ⊕ૂࢺ↾ൕ cႆіὨQSJOUFS cểₔ∦ଞTDSFFO c≁℟൞ಆ҆BMM TUZMFTUZMFṌ⚓ $44⤨ಸ ࡹ∗٢ᇂ໊ᇂğIFBEᆭభ Embedded CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
MJOLṌ⚓ ↥ແ External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
<link rel="stylesheet" href="CSS 檔案路徑" media="顯⽰示媒介名稱"> MJOLṌ⚓ ↥ແ External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
<link rel="stylesheet" href="CSS 檔案路徑" media="顯⽰示媒介名稱"> с⇜ᆷק MJOLṌ⚓ ↥ແ External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
<link rel="stylesheet" href="CSS 檔案路徑" media="顯⽰示媒介名稱"> с⇜ᆷק ∻భ૫ཌྷ MJOLṌ⚓ ↥ແ External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
<link rel="stylesheet" href="CSS 檔案路徑" media="顯⽰示媒介名稱"> с⇜ᆷק ∻భ૫ཌྷ MJOLṌ⚓ ↥ແ 選擇器 { 屬性名稱:屬性值; } ∻ຓ҆ẵσ’ ¸҂ླTUZMFṌ⚓ External CSS
Copyright © 2012 FITPI. All rights reserved. ຓ҆$44 5 ႄႨຓ҆$44ẵσčࡹ∗ڸẵ㬪DTTĎ
<link rel="stylesheet" href="CSS 檔案路徑" media="顯⽰示媒介名稱"> с⇜ᆷק ∻భ૫ཌྷ MJOLṌ⚓ ↥ແ ਸ਼ຓὕႵ)5.-5BHᇏ֥TUZMFđᆞӈ౦㣐Ⴈ҂֞ 選擇器 { 屬性名稱:屬性值; } ∻ຓ҆ẵσ’ ¸҂ླTUZMFṌ⚓ External CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 99%
的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b 99% 的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b ๏ ིੱğ⇔၂ՑॖၛสႨ֞؟ἠ∉ᇏb 99% 的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b ๏ ིੱğ⇔၂ՑॖၛสႨ֞؟ἠ∉ᇏb ๏ ིିğຓ҆ẵσିФॹ౼ DBDIF b 99% 的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b ๏ ིੱğ⇔၂ՑॖၛสႨ֞؟ἠ∉ᇏb ๏ ིିğຓ҆ẵσିФॹ౼ DBDIF b ๏ ື၂২ຓğФ℟㬪൮∉֥ೆ१ᅟb 99% 的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b ๏ ིੱğ⇔၂ՑॖၛสႨ֞؟ἠ∉ᇏb ๏ ིିğຓ҆ẵσିФॹ౼ DBDIF b ๏ ື၂২ຓğФ℟㬪൮∉֥ೆ१ᅟb ❖ ∉⅂ഒa۷ॹ↾ൕb 99% 的情況都應該使⽤用外部 CSS
Copyright © 2012 FITPI. All rights reserved. ἐႨଧ၂⊕Ĥ 6 ๏
∽ၩğ∄ൔ∻ἧିⴺṼָٳ b ๏ ིੱğ⇔၂ՑॖၛสႨ֞؟ἠ∉ᇏb ๏ ིିğຓ҆ẵσିФॹ౼ DBDIF b ๏ ື၂২ຓğФ℟㬪൮∉֥ೆ१ᅟb ❖ ∉⅂ഒa۷ॹ↾ൕb 99% 的情況都應該使⽤用外部 CSS http://developer.yahoo.com/performance/rules.html#external
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div>
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd { /* 只針對所有 id=”nav” 下的 class=”bd” 設定樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd { /* 只針對所有 id=”nav” 下的 class=”bd” 設定樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd { /* 只針對所有 id=”nav” 下的 class=”bd” 設定樣式 */ } #nav, #article {
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd { /* 只針對所有 id=”nav” 下的 class=”bd” 設定樣式 */ } #nav, #article { /* 同時針對 id=”nav” 與 id=”article” 設定相同的樣式 */
Copyright © 2012 FITPI. All rights reserved. ӈႨ⇢≢ఖ 7 ᄝ)5.-ᇏaॖ⊀Ớ෮Ⴕ֥Ṍ⚓℟קJE∻DMBTTℾྟđ
ԢਔἡჍ)5.-۷ݺ֥∽ၩຓđ္ିٚьⁿ℟ק$44∄ൔ Selector <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> p { /* 針對所有 p 標籤設定樣式 */ } #nav { /* 針對 id=”nav” 設定樣式 */ } .bd { /* 針對所有 class=”bd” 設定樣式 */ } div.bd { /* 針對所有 div class=”bd” 設定樣式 */ } #nav .bd { /* 只針對所有 id=”nav” 下的 class=”bd” 設定樣式 */ } #nav, #article { /* 同時針對 id=”nav” 與 id=”article” 設定相同的樣式 */ }
Copyright © 2012 FITPI. All rights reserved. ⇢≢ఖ 8 http://www.w3.org/TR/CSS2/selector.html#pattern-matching
(CSS2) CSS3 ⽀支援更多: http://www.w3schools.com/cssref/css_selectors.asp
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; }
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ ϶વὂ⃯ۯℾྟẀ∻ℾྟᆴ
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ ϶વὂ⃯ۯℾྟẀ∻ℾྟᆴ ၛٳὂٳۯ҂ℾྟ
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ ϶વὂ⃯ۯℾྟẀ∻ℾྟᆴ ၛٳὂٳۯ҂ℾྟ <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div>
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ ϶વὂ⃯ۯℾྟẀ∻ℾྟᆴ ၛٳὂٳۯ҂ℾྟ <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> #nav, #article { background: yellow; padding: 20px; width: 100px; margin-bottom: 10px; } #nav p { text-decoration: underline; color: blue; } #article p { color: red; font-weight: bold; } + =
Copyright © 2012 FITPI. All rights reserved. ℾྟ 9 選擇器
{ 屬性名稱1:屬性值; 屬性名稱2:屬性值; 屬性名稱3:屬性值; } ႨնওὂЇڭ ϶વὂ⃯ۯℾྟẀ∻ℾྟᆴ ၛٳὂٳۯ҂ℾྟ <div id=”nav”> <div class=”bd”> <p>選單</p> </div> </div> <div id=”article”> <div class=”bd”> <p>⽂文章</p> </div> </div> #nav, #article { background: yellow; padding: 20px; width: 100px; margin-bottom: 10px; } #nav p { text-decoration: underline; color: blue; } #article p { color: red; font-weight: bold; } + =
Copyright © 2012 FITPI. All rights reserved. ℾྟࢺℚ 10 http://www.w3schools.com/css/
CSS Styling Styling Backgrounds Styling Text Styling Fonts Styling Links Styling Lists Styling Tables W3School 的屬性類別列表 CSS Advanced CSS Grouping/Nesting CSS Dimension CSS Display CSS Positioning CSS Floating CSS Align CSS Pseudo-class CSS Pseudo-element CSS Navigation Bar CSS Image Gallery CSS Image Opacity CSS Image Sprites CSS Media Types CSS Attribute Selectors CSS Box Model CSS Box Model CSS Border CSS Outline CSS Margin CSS Padding
Copyright © 2012 FITPI. All rights reserved. #PY.PEFM 11 padding
border width margin W3C 的標準盒模型 padding border width margin IE 怪異模式盒模型 XJEUI IFJHIUෘمປಆ҂aԚ⇥ᆀླ٤ӈཬྏ ⇀ࣂ֥∉ၘῂ㢻Ⴕܯ㹁ଆൔ֥ླਔ ᆺေཬྏ%0$5:1&֥࿆ۡࠧॖх૧
Copyright © 2012 FITPI. All rights reserved. color:#369; background:#ffe; font:bold
16px; ๏ ูՎ໓ᅣଆ⊾౼ἠℳކ֥JE ๏ ࡆഈIE CE GU֥DMBTT ๏ ০Ⴈభ૫֥࢝Ọ༆℟ק∄ൔ 12 ‣↮ğูଆ⊾ࡆഈ∄ൔ http://f2eclass.com/lab/css/module.html
Copyright © 2012 FITPI. All rights reserved. 排版的常⽤用技巧 13 $44ڜọ
Copyright © 2012 FITPI. All rights reserved. 過去:常⽤用 <table> 來做到下⾯面的版型:
<table border=”1”> <tr> <td align=”left”>靠左⽂文字</td> <td align=”right”>靠右⽂文字</td> </tr> </table> 14 ẖⅼஆϱ 靠左⽂文字 靠右⽂文字
Copyright © 2012 FITPI. All rights reserved. 現在:使⽤用 CSS 的
float 屬性來做到 <div id=”masthead” style=”border:solid 1px #000”> <span style=”float:left”> 靠左⽂文字 </span> <span style=”float:right”> 靠右⽂文字 </span> </div> 15 GMPBUℾྟ 靠左⽂文字 靠右⽂文字
Copyright © 2012 FITPI. All rights reserved. 但 float 之後的區塊是不會佔空間的
實際情況會是: border 不會被⽂文字的⾼高度給撐開! 16 ڜọ㸗ള֥↜ⅳ 靠左⽂文字 靠右⽂文字
Copyright © 2012 FITPI. All rights reserved. IE9 之前的作法 在上⼀一層設
zoom:1 <div id=”masthead” style=”zoom:1;border:solid 1px #000”> <span style=”float:left”> 靠左⽂文字 </span> <span style=”float:right”> 靠右⽂文字 </span> </div> 17 Ớ*&֥ࢳم
Copyright © 2012 FITPI. All rights reserved. 加上特別的 <br> <div
id=”masthead” style=”zoom:1;border:solid 1px #000”> <span style=”float:left”> 靠左⽂文字 </span> <span style=”float:right”> 靠右⽂文字 </span> <br style=”clear:both;”> </div> 18 ๙Ⴈࢳم BUT! 我們不應該為了樣式特別加⼀一個 <br> /* 作⽤用是增加了⼀一個有 clear:both 屬性的區塊 */ #masthead:after { content:""; display:block; clear:both; } 與上⾯面加的 <br> 效果相同
Copyright © 2012 FITPI. All rights reserved. border:solid 5px #ccc;
font:bold 197%; IE : 在⽗父節點設定 zoom1; 其他瀏覽器: ⽗父節點:after { content:’’; display:block; clear:both; } ‣↮ğႨ$44ቓڜọ ๏ 標題浮到左邊 ๏ YUI 圖浮到右邊 ๏ 替整個模組設 border ๏ ⽤用前⾯面的⽅方法清除 19 http://f2eclass.com/lab/css/float.html
Copyright © 2012 FITPI. All rights reserved. 適當地將 <img> 改⽤用
CSS 背景可讓讀取更順暢 20 $44Мࣟ
Copyright © 2012 FITPI. All rights reserved. 在 Y! 所有裝飾性的圖都是
CSS 背景圖 21
Copyright © 2012 FITPI. All rights reserved. 在 Y! 所有裝飾性的圖都是
CSS 背景圖 21
Copyright © 2012 FITPI. All rights reserved. 22 ठ≢ٚൔ 何時該⽤用背景圖?何時該⽤用
img 標籤?
Copyright © 2012 FITPI. All rights reserved. 22 ठ≢ٚൔ ๏
對於裝飾性、可有可無的圖⽚片應採⽤用背景圖。 何時該⽤用背景圖?何時該⽤用 img 標籤?
Copyright © 2012 FITPI. All rights reserved. 22 ठ≢ٚൔ ๏
對於裝飾性、可有可無的圖⽚片應採⽤用背景圖。 ❖ 例如圓⾓角、⼩小 Icon 等即使消失也不會造成無法閱讀 的圖⽚片。 何時該⽤用背景圖?何時該⽤用 img 標籤?
Copyright © 2012 FITPI. All rights reserved. 22 ठ≢ٚൔ ๏
對於裝飾性、可有可無的圖⽚片應採⽤用背景圖。 ❖ 例如圓⾓角、⼩小 Icon 等即使消失也不會造成無法閱讀 的圖⽚片。 ๏ ⽽而對於內容的⼀一部分,則應該使⽤用 img 標籤。 何時該⽤用背景圖?何時該⽤用 img 標籤?
Copyright © 2012 FITPI. All rights reserved. 22 ठ≢ٚൔ ๏
對於裝飾性、可有可無的圖⽚片應採⽤用背景圖。 ❖ 例如圓⾓角、⼩小 Icon 等即使消失也不會造成無法閱讀 的圖⽚片。 ๏ ⽽而對於內容的⼀一部分,則應該使⽤用 img 標籤。 ❖ 例如⻝⾷食記中的餐點圖⽚片、網⾴頁上的廣告、⽤用圖⽚片做的 標題、網站 Logo 都是內容的⼀一部分。 何時該⽤用背景圖?何時該⽤用 img 標籤?
Copyright © 2012 FITPI. All rights reserved. background: [背景⾊色] [url(圖檔路徑)]
[x, y 位置] [重複]; background:#369 url(ico_yui.gif) left top repeat-x; repeat-y no-repeat 0 100% 0 -12px background-color:#369; background-image:url(ico_yui.gif); background-position:left top; background-repeat:repeat-x; 或 23 ∽م
Copyright © 2012 FITPI. All rights reserved. ‣↮ğ$44Мࣟ 24 http://f2eclass.com/lab/css/background.html
๏ 設定背景圖為 bg_nav.png
Copyright © 2012 FITPI. All rights reserved. $444QSJUFT 25 http://l.yimg.com/f/i/tw/hp/spirit121004l/sprite.png
把多張背景圖合併成⼀一張 雅⻁虎奇摩⾸首⾴頁的 Sprites 0, 0 sprite.png 0, 30 0, 55 0, 90 0, 115 0, 145 background: url(sprite.png) 0 -115px no-repeat; background: url(sprite.png) 0 -145px no-repeat; background: url(sprite.png) 0 -90px no-repeat; background: url(sprite.png) 0 -55px no-repeat; background: url(sprite.png) 0 -30px no-repeat; background: url(sprite.png) 0 0 no-repeat;
Copyright © 2012 FITPI. All rights reserved. 4QSJUFT֥∱ಌề 26 ๏
ݺẕğႵི㦆ഒਫ⃪਼⅂ਈ ❖ ؟⃪Ớ∉֥↾ൕ൞Ⴕ႕⇉֥b ๏ ὒẕğₒၛ→Ὂ ❖ Y Z໊֥ᇂ֤յῘ႕ཞẕℂⅴҰᅳb ๏ ၘῂႵℂⅴॖၛሱọ߄ẕ
Copyright © 2012 FITPI. All rights reserved. $44໊ᇂ 不管是做圓⾓角、位置微調都會⽤用到 27
Copyright © 2012 FITPI. All rights reserved. <div/> <div/> <div/>
<div/> 什麼都沒設時(position:static;) 28
Copyright © 2012 FITPI. All rights reserved. <div/> <div/> <div/>
<div style=”position:absolute; bottom:0;right:0;”> 當對某個區塊設了 position:absolute; 時 就脫離原有區塊的範圍、不佔空間 29
Copyright © 2012 FITPI. All rights reserved. <div style=”position:relative;” />
<div/> <div/> <div style=”position:absolute; bottom:0;right:0;”> 對⺟母區塊設定 position:relative; 則會限制住 position:absolute; 的⼦子區塊 30
Copyright © 2012 FITPI. All rights reserved. 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ ❖ GJYFE 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ ❖ GJYFE ๏ UPQ SJHIU CPUUPN MFGU֥ކ 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ ❖ GJYFE ๏ UPQ SJHIU CPUUPN MFGU֥ކ ❖ ᄝଢభ໊֥ᇂສ༯၍QY QPTJUJPOSFMBUJWFUPQQY 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ ❖ GJYFE ๏ UPQ SJHIU CPUUPN MFGU֥ކ ❖ ᄝଢభ໊֥ᇂສ༯၍QY QPTJUJPOSFMBUJWFUPQQY ❖ ᆜٺ໓ࡱᇏ֥Ⴗ༯࢘ğ QPTJUJPOBCTPMVUFSJHIUCPUUPN 31
Copyright © 2012 FITPI. All rights reserved. ๏ QPTJUJPO ❖
TUBUJD≁℟ ❖ BCTPMVUF䌉Ớק໊ ❖ SFMBUJWFཌྷỚק໊ ❖ GJYFE ๏ UPQ SJHIU CPUUPN MFGU֥ކ ❖ ᄝଢభ໊֥ᇂສ༯၍QY QPTJUJPOSFMBUJWFUPQQY ❖ ᆜٺ໓ࡱᇏ֥Ⴗ༯࢘ğ QPTJUJPOBCTPMVUFSJHIUCPUUPN ❖ ॖℶ⃯თ֥ቋ༯ٚč*&҂ᆦჱĎğ QPTJUJPOGJYFECPUUPN 31
Copyright © 2012 FITPI. All rights reserved. 1. 將 li
設定為 position:relative; 2. 將 img 設定為 position:absolute; 並利⽤用 top, right 做微調 ‣↮ğ$44໊ᇂ 32 http://f2eclass.com/lab/position.html
Copyright © 2012 FITPI. All rights reserved. $44)BDL 針對不同瀏覽器做樣式處理 33
Copyright © 2012 FITPI. All rights reserved. IE 6, IE7,
IE8, IE9, 其他瀏覽器會有不同的底⾊色 #article .bd { background:blue; background:purple \0; background:pink \9; *background:green; _background:red; } All Browsers IE 7, IE 6 IE 6 34 IE8, IE7, IE6 IE9, IE8 ӈႨ$44)BDL ⼤大多是為了 IE 特別修正,其他瀏覽器較少問題
Copyright © 2012 FITPI. All rights reserved. 讓 #article .bd
在 IE9 為 purple、IE8 為 green、IE7 為 red,其他瀏覽器為 pink。 ‣↮ğ$44)BDL 35 http://f2eclass.com/lab/css-hack.html
Copyright © 2012 FITPI. All rights reserved. Άᾲᆩℰ∻۽ऎ 36 ๏
3FTFU$44ᾞ∄ൔἳਬ ๏ $44(SJET$44ஆϱٚൔ ๏ 4"44$PNQBTTс⇥۽ऎ ๏ $44с⇥ℾྟ ๏ 5XJUUFS#PPUTUSBQ۽ӱ℩္Ⴕݺࢺ૫ ๏ $44$PEF$POWFOUJPOℼ⇔ἲữ ๏ $44ὡⅾ
Copyright © 2012 FITPI. All rights reserved. 3FTFU$44 ๏ )5.-Ṍ⚓ЧദႵ≁℟∄ൔđ൞ૄ
ἠ⏟´ఖႵҵ㹁đࡆഈն؟҂ژކ ⁿ֥ླb ๏ )5.-൞ἧa҂∣ἐႵޅ∄ൔb ๏ ପ喁ⁿࣼἳਬϔaૄἠṌ⚓֥ຓἭ ၂ଆ၂∄b ๏ ⊦∊Ć෮Ⴕ֥∄ൔႮሱ࠭ᇗྍק∕b 37
Copyright © 2012 FITPI. All rights reserved. 3FTFU$44ིݔ 38
Copyright © 2012 FITPI. All rights reserved. 3FTFU$44֥⇢≢ ๏ &SJD.FZFS
IUUQNFZFSXFCDPNFSJDUPPMTDTTSFTFU ๏ :6*$443FTFU IUUQZVJMJCSBSZDPNZVJEPDTDTTSFTFU 39 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.7.2/build/cssreset/cssreset-min.css"> 直接放在⾴頁⾯面上就⽣生效
Copyright © 2012 FITPI. All rights reserved. $44(SJET 40
Copyright © 2012 FITPI. All rights reserved. $44(SJET ๏ (SJET൞ᆷᆜἠ∉֥ஆϱb
40
Copyright © 2012 FITPI. All rights reserved. $44(SJET ๏ (SJET൞ᆷᆜἠ∉֥ஆϱb
๏ $44'MPBU൞ஆϱ֥၂⊕ቔمb 40
Copyright © 2012 FITPI. All rights reserved. $44(SJET ๏ (SJET൞ᆷᆜἠ∉֥ஆϱb
๏ $44'MPBU൞ஆϱ֥၂⊕ቔمb ๏ ҂ࡹ∗ሱ࠭Ῐứஆϱđ↱ᾳ؟b 40
Copyright © 2012 FITPI. All rights reserved. $44(SJET ๏ (SJET൞ᆷᆜἠ∉֥ஆϱb
๏ $44'MPBU൞ஆϱ֥၂⊕ቔمb ๏ ҂ࡹ∗ሱ࠭Ῐứஆϱđ↱ᾳ؟b ๏ ᄜᾏẪ֥∉∣ἐႄႨ↛ק֥(SJET ༢ⅼb 40
Copyright © 2012 FITPI. All rights reserved. 41 http://960.gs/ HT
Copyright © 2012 FITPI. All rights reserved. 41 http://960.gs/ HT
Copyright © 2012 FITPI. All rights reserved. 42 http://960.gs/ ๏
ᾞ∉ཋᇅ㬪QJYFMb ๏ ၇ᅶࠇ֩ٳ్۬ሰb ๏ ݺẕ൞۵ℶῒ℟ί℩ಸၞٳ۽b ❖ ҂Ⴈᄜ⃝၂ؐỚ֥↜ⅳb ๏ ὒẕ൞ჰ֥ⅆ㢻Ḱم၇4&0Ệᆜb HT
Copyright © 2012 FITPI. All rights reserved. 43 :6*(SJET http://developer.yahoo.com/yui/grids/
側邊欄寬度為 240px 平均分配 50%, 50% 版⾯面寬度 950px
Copyright © 2012 FITPI. All rights reserved. 44
Copyright © 2012 FITPI. All rights reserved. 45
Copyright © 2012 FITPI. All rights reserved. 46 :6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. 46 ๏ ∉૫ῥ؇؟⊕ॖ⇢b
:6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. 46 ๏ ∉૫ῥ؇؟⊕ॖ⇢b
๏ ۀ㬪wᇶေ⤨ಸx∻wṥṆxb :6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. 46 ๏ ∉૫ῥ؇؟⊕ॖ⇢b
๏ ۀ㬪wᇶေ⤨ಸx∻wṥṆxb ๏ ṥṆॖሱႮỆᆜቐႷa۲⊕ῥ؇b :6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. 46 ๏ ∉૫ῥ؇؟⊕ॖ⇢b
๏ ۀ㬪wᇶေ⤨ಸx∻wṥṆxb ๏ ṥṆॖሱႮỆᆜቐႷa۲⊕ῥ؇b ๏ ⤨ಸῥ؇∉૫ῥ؇ṥṆῥ؇b :6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. 46 ๏ ∉૫ῥ؇؟⊕ॖ⇢b
๏ ۀ㬪wᇶေ⤨ಸx∻wṥṆxb ๏ ṥṆॖሱႮỆᆜቐႷa۲⊕ῥ؇b ๏ ⤨ಸῥ؇∉૫ῥ؇ṥṆῥ؇b ๏ ࠧᇗေ֥⤨ಸᄝႷṆa္ॖၛᄝჰᇏ ᄪề↾ൕb :6*(SJET http://developer.yahoo.com/yui/grids/
Copyright © 2012 FITPI. All rights reserved. ‣↮ğႨ(SJE#VJMEFS http://developer.yahoo.com/yui/grids/builder/ ॹ%*7
$44ϱ૫㸗ളఖ 47
Copyright © 2012 FITPI. All rights reserved. 48 $44∻4QSJUFࣷྒ ၂สଁਙ֥ℂⅴ
ॖၛႨ4"44۷ἧ߄֥ٚൔ⇔$44 ❣ิ܂ਔ⇝؟ݺႨ֥ۿି NJYJO Ć http://compass-style.org/
Copyright © 2012 FITPI. All rights reserved. 49 a.scss -
你所撰寫及維護的 a.css - ⼯工具⾃自動產⽣生的 ӗ⊯ൔ$44
Copyright © 2012 FITPI. All rights reserved. ⃦⅌⇔$44 50 @import
"compass"; .foo { @include border-radius(5px); @include box-shadow(10px); } /* line 3, ../sass/foo.scss */ .foo { -webkit-border-radius: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; -o-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: 10px; -moz-box-shadow: 10px; box-shadow: 10px; } foo.scss foo.css $44ᆦჱ؇ᄝૄἠ⏟´ఖὕႵ၂ུҵ㹁đ ଢభն؟ὕ൞ܳഈ۲ሱṸഅ֥QSFGJY Ⴈ$PNQBTTđᆺေ⇔၂⊕ࣼॖၛ㸗ԛ ෮Ⴕ⏟´ఖ෮ླ֥$44đٳ⃦⅌Ć
Copyright © 2012 FITPI. All rights reserved. 51 ν⊬❣℟ק4DPVU ૧ỷϱॴ(6*֥$PNQBTT۽ऎ
新增專案 設定寫 SASS 的地⽅方 設定輸出成 CSS 的地⽅方 監控此⺫⽬目錄是否有改變、 會⾃自動更新你的 CSS 組態設定 更新記錄 http://mhs.github.com/scout-app/ 設定圖檔位置
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX=
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ ❖ TUZMFTIFFUT൞ႮTBTT⊨ԛaℯόФ⏟´ఖồ౼֥DTTẵ
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ ❖ TUZMFTIFFUT൞ႮTBTT⊨ԛaℯόФ⏟´ఖồ౼֥DTTẵ ❖ JNBHFT༯Ⴕ≁༵⊵Ḿݺ֥ⅾẵ
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ ❖ TUZMFTIFFUT൞ႮTBTT⊨ԛaℯόФ⏟´ఖồ౼֥DTTẵ ❖ JNBHFT༯Ⴕ≁༵⊵Ḿݺ֥ⅾẵ ๏ 4DPVU℟קݺᗥ⬏ọaẵσṉọሱọ㸗ളb
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ ❖ TUZMFTIFFUT൞ႮTBTT⊨ԛaℯόФ⏟´ఖồ౼֥DTTẵ ❖ JNBHFT༯Ⴕ≁༵⊵Ḿݺ֥ⅾẵ ๏ 4DPVU℟קݺᗥ⬏ọaẵσṉọሱọ㸗ളb ๏ 4VCMJNF5FYU֤ႵDPOGJHSCކ#VJMEb
Copyright © 2012 FITPI. All rights reserved. ‣↮$PNQBTT 52 ๏
⃪༯≘IUUQGFDMBTTDPNMBCDTTDPNQBTT[JQ ๏ ࢳ⇭⅜֥֞ᅟ۴ଢ仛$="QQ4FSW=XXX= ๏ ႵTBTT TUZMFTIFFUT JNBHFT֩ଢ仛 ❖ TBTT൞ჰẵ ❖ TUZMFTIFFUT൞ႮTBTT⊨ԛaℯόФ⏟´ఖồ౼֥DTTẵ ❖ JNBHFT༯Ⴕ≁༵⊵Ḿݺ֥ⅾẵ ๏ 4DPVU℟קݺᗥ⬏ọaẵσṉọሱọ㸗ളb ๏ 4VCMJNF5FYU֤ႵDPOGJHSCކ#VJMEb ๏ ႵOPSNBMIUNM CBTJDTQSJUFIUNM BVUP TQSJUFIUNMἠẵσ⃪նࡅ‣↮b
Copyright © 2012 FITPI. All rights reserved. 53 ๏ 4"444ZOUBDUJDBMMZ"XFTPNF4UZMF4IFFUT
IUUQTBTTMBOHDPN ק∕ਔࠎẒ∽م ๏ $PNQBTT$44"VUIPSJOH'SBNXFPSL IUUQDPNQBTTTUZMFPSH ࠎᧄ4"44෮ቓ֥ॿࡏa⃪؟Ṛॉ≾Ṇ֥໓ࡱ ๏ 4DPVU$PNQBTTBOE4BTTXJUIPVUBMMIBTTMF IUUQNITHJUIVCDPNTDPVUBQQ ॴ૧ỷ֥4"44۽ऎ $PNQBTTṚॉ’
Copyright © 2012 FITPI. All rights reserved. 54 5XJUUFS#PPUTUSBQ http://twitter.github.com/bootstrap/
Copyright © 2012 FITPI. All rights reserved. ๏ ۽ӱ℩္ିႵݺ∄ൔ 54
5XJUUFS#PPUTUSBQ http://twitter.github.com/bootstrap/
Copyright © 2012 FITPI. All rights reserved. ๏ ۽ӱ℩္ିႵݺ∄ൔ ๏
ᄝ∉૫ഈႄႨຓ҆$44aἾ#PPUTUSBQ≁༵ק ∕֥)5.-ἧ∻$MBTTẀࠧॖႨb২ೂ DMBTTCUO 54 5XJUUFS#PPUTUSBQ http://twitter.github.com/bootstrap/
Copyright © 2012 FITPI. All rights reserved. ๏ ۽ӱ℩္ିႵݺ∄ൔ ๏
ᄝ∉૫ഈႄႨຓ҆$44aἾ#PPUTUSBQ≁༵ק ∕֥)5.-ἧ∻$MBTTẀࠧॖႨb২ೂ DMBTTCUO ๏ ℳކႨᄝ҂ླห⦁∄ൔֹ֥ٚđ২ೂ$.4ࠇ 1SPUPUZQFbႵሱק∄ൔֹ֥ٚđ২ೂྙའᅟ ࣼ҂ℳކਔb 54 5XJUUFS#PPUTUSBQ http://twitter.github.com/bootstrap/
Copyright © 2012 FITPI. All rights reserved. 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ 55
$44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ ๏
CBDLHSPVOEJNBHFMJOFBSHSBEJFOUᾛṧ 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ ๏
CBDLHSPVOEJNBHFMJOFBSHSBEJFOUᾛṧ ๏ CPSEFSSBEJVT≈࢘ 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ ๏
CBDLHSPVOEJNBHFMJOFBSHSBEJFOUᾛṧ ๏ CPSEFSSBEJVT≈࢘ ๏ CPYTIBEPXއሰ֥∜႕ 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ ๏
CBDLHSPVOEJNBHFMJOFBSHSBEJFOUᾛṧ ๏ CPSEFSSBEJVT≈࢘ ๏ CPYTIBEPXއሰ֥∜႕ ๏ UFYUTIBEPX໓ሳ֥∜႕ 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. ๏ CBDLHSPVOESHCB϶ૼ ๏
CBDLHSPVOEJNBHFMJOFBSHSBEJFOUᾛṧ ๏ CPSEFSSBEJVT≈࢘ ๏ CPYTIBEPXއሰ֥∜႕ ๏ UFYUTIBEPX໓ሳ֥∜႕ ๏ USBOTJUJPO㍤ṳ 55 $44с⇥ℾྟ
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb ๏ ෮ႵℾྟࢥẪỒ၂ྛaၛἠ4QBDFTῘⅽb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb ๏ ෮ႵℾྟࢥẪỒ၂ྛaၛἠ4QBDFTῘⅽb ๏ 冓၂ੰ㍇Ⴈཬ⇔b
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb ๏ ෮ႵℾྟࢥẪỒ၂ྛaၛἠ4QBDFTῘⅽb ๏ 冓၂ੰ㍇Ⴈཬ⇔b ๏ ℾྟᆴᗥ၂ੰࡆഈٳὂb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb ๏ ෮ႵℾྟࢥẪỒ၂ྛaၛἠ4QBDFTῘⅽb ๏ 冓၂ੰ㍇Ⴈཬ⇔b ๏ ℾྟᆴᗥ၂ੰࡆഈٳὂb ๏ ㍇Ⴈ)5.-ଆ⊾߄ῘứaỚ܋Ⴈ֥҆ٺေཬྏb
Copyright © 2012 FITPI. All rights reserved. $44ℼ⇔ἲữ 56 有⼀一致的書寫規範,程式才能⽤用得久
๏ 䌉Ớ҂ၛ∄ൔଁ)5.-֥JEࠇDMBTTℾྟb ๏ DMBTT∻JEଁ㍇Ⴈཬ⇔ކᅼὂ’ࢤb ๏ ℾྟοᅶሳଛⅆ B[ ቓஆb ๏ ⇢≢ఖᗥॢ၂۬٢նওὂῘⅽaնওὂແᅝ၂ྛb ๏ ෮ႵℾྟࢥẪỒ၂ྛaၛἠ4QBDFTῘⅽb ๏ 冓၂ੰ㍇Ⴈཬ⇔b ๏ ℾྟᆴᗥ၂ੰࡆഈٳὂb ๏ ㍇Ⴈ)5.-ଆ⊾߄ῘứaỚ܋Ⴈ֥҆ٺေཬྏb 以上書寫規範只是建議,你可以⾃自訂
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ ❖ ২ೂğUPQOBW MFGUCBS SFEQY CPUUPNBE CMBDLCBS
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ ❖ ২ೂğUPQOBW MFGUCBS SFEQY CPUUPNBE CMBDLCBS ๏ ⇢≢ఖླႨἧῲଁb
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ ❖ ২ೂğUPQOBW MFGUCBS SFEQY CPUUPNBE CMBDLCBS ๏ ⇢≢ఖླႨἧῲଁb ❖ ২ೂğTJEFCBS OBW FYUSB BEMSFD
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ ❖ ২ೂğUPQOBW MFGUCBS SFEQY CPUUPNBE CMBDLCBS ๏ ⇢≢ఖླႨἧῲଁb ❖ ২ೂğTJEFCBS OBW FYUSB BEMSFD ๏ $PNQBTT⇔$44۷ἧ߄a4QSJUF۷ሱọb
Copyright © 2012 FITPI. All rights reserved. 57 ӱ߭Ἢ ๏
⃪ềℭᾇुἾ$44֥෮Ⴕℾྟb ๏ *%⇢≢ఖğἡჍ∄ൔ℟קଁॢᾇb ๏ $MBTT⇢≢ఖğቋӈႨῲ℟ק$44∄ൔb ๏ ၛഈ‥ᆀ֥ଁ∣ἐх૧Ṛ≗∄ൔ ❖ ২ೂğUPQOBW MFGUCBS SFEQY CPUUPNBE CMBDLCBS ๏ ⇢≢ఖླႨἧῲଁb ❖ ২ೂğTJEFCBS OBW FYUSB BEMSFD ๏ $PNQBTT⇔$44۷ἧ߄a4QSJUF۷ሱọb ๏ #PPUTUSBQิ܂ޓϿ֥∄ൔđ֥㸗ℳކĤ
Copyright © 2012 FITPI. All rights reserved. 58 Q &
A