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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
周祺
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
250
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
Workers Cache を知る
syumai
0
370
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.5k
The Rails Doctrine Decade
koic
2
590
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
golang-bob.pdf
iwatsukayura
0
130
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
sbt 2.0: takeoff
eed3si9n
0
160
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
ChromeでローカルLLM
ryu1013
0
140
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.6k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Optimizing for Happiness
mojombo
378
71k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Ruling the World: When Life Gets Gamed
codingconduct
0
400
Building Applications with DynamoDB
mza
96
7.2k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
1k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
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