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
270
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
410
Web App
zhouqicf
1
260
Web App开发
zhouqicf
4
340
f2e @ 2012
zhouqicf
6
200
Photoshop影像修饰艺术
zhouqicf
4
430
前端和视觉间的故事
zhouqicf
1
240
Chrome Extension
zhouqicf
1
410
Other Decks in Programming
See All in Programming
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
golang-bob.pdf
iwatsukayura
0
130
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
300
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
270
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.3k
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
170
contenteditable と日本語入力に向き合う
colorful12
0
200
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
4k
The Rails Doctrine Decade
koic
2
600
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.6k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
2
960
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
880
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
830
Exploring anti-patterns in Rails
aemeredith
4
540
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
560
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Embracing the Ebb and Flow
colly
88
5.2k
4 Signs Your Business is Dying
shpigford
187
23k
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