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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
周祺
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
370
Web App
zhouqicf
1
200
Web App开发
zhouqicf
4
290
f2e @ 2012
zhouqicf
6
190
Photoshop影像修饰艺术
zhouqicf
4
400
前端和视觉间的故事
zhouqicf
1
180
Chrome Extension
zhouqicf
1
390
Other Decks in Programming
See All in Programming
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
280
Claude CodeとAgentCore Gatewayを繋ぐ際の認証認可 / Authentication and authorization when connecting Claude Code with AgentCore Gateway
har1101
2
270
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
550
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
160
Japan Community Day at Kubecon + CloudNativeCon Japan 2026: Learning Container Privilege Control by Building My Own Low-Level Container Runtime
ternbusty
1
150
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
690
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
190
AIが無かった頃の素敵な出会いの話
codmoninc
1
430
TSX の <Hoge<Fuga>> という構文に驚いた話 / tsx-type-argument-syntax
kanaru0928
0
230
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
510
What's New in Android 2026
veronikapj
0
260
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
230
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.2k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
66
57k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Believing is Seeing
oripsolob
1
190
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Accessibility Awareness
sabderemane
1
180
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
170
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Code Reviewing Like a Champion
maltzj
528
40k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.8k
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