博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CSS模块化
阅读量:5784 次
发布时间:2019-06-18

本文共 997 字,大约阅读时间需要 3 分钟。

1. Base

2. Layout
3. Module
4. State
5. Theme

 

1) Base rules

Base rules are the defaults.

eg:

html, body, form {
margin: 0; padding: 0; }input[type=text] {
border: 1px solid #999; }a {
color: #039; }a:hover {
color: #03C; }

 

2) Layout rules

divide the page into sections. Layouts hold one or

more modules together. 

 

3) Modules

are the reusable, modular parts of our design. They are

the callouts, the sidebar sections, the product lists and so on.

 

4) State rules

are ways to describe how our modules or layouts will

look when in a particular state. Is it hidden or expanded? Is it active
or inactive? They are about describing how a module or layout
looks on screens that are smaller or bigger. They are also about describing
how a module might look in different views like the home
page or the inside page.

 

5) Theme rules

are similar to state rules in that they describe

how modules or layouts might look. Most sites don’t require a layer
of theming but it is good to be aware of it.

 

转载地址:http://nxvyx.baihongyu.com/

你可能感兴趣的文章
cd及目录快速切换
查看>>
Unity Shaders and Effects Cookbook (3-5) 金属软高光
查看>>
31-hadoop-hbase-mapreduce操作hbase
查看>>
C++ 代码风格准则:POD
查看>>
linux-友好显示文件大小
查看>>
【转】【WPF】WPF中MeasureOverride ArrangeOverride 的理解
查看>>
【转】二叉树的非递归遍历
查看>>
NYOJ283对称排序
查看>>
接连遇到大牛
查看>>
[Cocos2d-x For WP8]矩形碰撞检测
查看>>
自己写spring boot starter
查看>>
花钱删不完负面消息
查看>>
JBPM之JPdl小叙
查看>>
(step6.1.5)hdu 1233(还是畅通工程——最小生成树)
查看>>
Membership三步曲之进阶篇 - 深入剖析Provider Model
查看>>
前端优化及相关要点总结
查看>>
struts2中form提交到action中的中文参数乱码问题解决办法(包括取中文路径)
查看>>
25 个精美的手机网站模板
查看>>
C#反射实例应用--------获取程序集信息和通过类名创建类实例
查看>>
VC中实现文字竖排的简单方法
查看>>