Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSS模块化
Search
周祺
May 20, 2011
Programming
280
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS模块化
周祺
May 20, 2011
More Decks by 周祺
See All by 周祺
Mobile Web的性能优化与测试
zhouqicf
7
430
Web App
zhouqicf
1
280
Web App开发
zhouqicf
4
360
f2e @ 2012
zhouqicf
6
200
Photoshop影像修饰艺术
zhouqicf
4
450
前端和视觉间的故事
zhouqicf
1
260
Chrome Extension
zhouqicf
1
420
Other Decks in Programming
See All in Programming
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2k
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
1.2k
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
220
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
5.8k
はじめてのPLATEAU
nokonoko1203
1
630
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.5k
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
740
オーケストレーション記述言語 Katari
yukikurage
0
240
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
2.2k
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
330
Featured
See All Featured
KATA
mclloyd
PRO
35
16k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
630
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
How STYLIGHT went responsive
nonsquared
100
6.4k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
930
How to build a perfect <img>
jonoalderson
1
6.2k
How GitHub (no longer) Works
holman
316
150k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
620
Test your architecture with Archunit
thirion
2
2.5k
Transcript
模块化 由校 2010-10-25
基类、扩展类 基类: .prompt{…} .prompt-success{…} .prompt-fail{…} 扩展类: .prompt-a{…} .prompt-b{…} 个性化定义: #modify-account
.prompt{…} #upload-avatar .prompt{…}
模块注释 /** * @name : mod-prompt * @author :youxiao *
@version :1.0 * @type :基类 * @explain :操作结果提示模块 */ .mod-prompt{...} .mod-prompt h2{...} .mod-prompt p{...} .mod-prompt-success{…} .mod-prompt-fail{…} /* @end **/ /** * @name : mod-prompt-a * @author :youxiao * @version :1.0 * @type :扩展类 * @explain :操作结果提示模块 * @dependent : mod-prompt */ .mod-prompt-a{...} .mod-prompt-a h2{ ... } .mod-prompt-a p{ ... } /* @end **/
显式声明作用域 全局: .K2-note{…} .K2-title{…} 项目/产品: .project-note{…} .project-title{…} 页面: #modify-account .note{…}
#modify-account .title{…}
结合 基类: .project-prompt{…} .project-prompt-success{…} .project-prompt-fail{…} 扩展类: .project-prompt-style-a{…} .project-prompt-style-b{…} 个性化定义: #modify-account
.project-prompt{…} #upload-avatar .project-prompt{…} .business-prompt .tuan-prompt
模块注释 /** * @name : business-prompt * @author :youxiao *
@version :1.0 * @type :基类 * @explain :操作结果提示模块 * @caller:add_pic\modify_pic */ . business-prompt{...} . business-prompt h2{...} . business-prompt p{...} /* @end **/ /** * @name : business-prompt-a * @author :youxiao * @version :1.0 * @type :扩展类 * @explain :操作结果提示模块 * @dependent : business-prompt * @caller:del_pic */ .business-prompt-a{...} .business-prompt-a h2{ ... } .business-prompt-a p{ ... } /* @end **/
Q&A