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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
周祺
May 20, 2011
Programming
240
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
360
Web App
zhouqicf
1
200
Web App开发
zhouqicf
4
290
f2e @ 2012
zhouqicf
6
190
Photoshop影像修饰艺术
zhouqicf
4
390
前端和视觉间的故事
zhouqicf
1
170
Chrome Extension
zhouqicf
1
390
Other Decks in Programming
See All in Programming
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
180
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
140
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
170
5分で問診!Composer セキュリティ健康診断
codmoninc
0
570
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
17
9.3k
どこまでゆるくて許されるのか
tk3fftk
0
520
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
530
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
390
【SRE NEXT 2026 Lunch Session】一人目専任SREの立ち上げを加速する ― AIと進めたオンボーディングで2分を0.04秒にした話
pkshadeck
PRO
0
3k
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
270
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
120
Android CLI
fornewid
0
120
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
270
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
260
The Pragmatic Product Professional
lauravandoore
37
7.4k
For a Future-Friendly Web
brad_frost
183
10k
Skip the Path - Find Your Career Trail
mkilby
1
170
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
230
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Utilizing Notion as your number one productivity tool
mfonobong
4
450
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