美文网首页
常见变量样式命名方法

常见变量样式命名方法

作者: 大胡子歌歌 | 来源:发表于2017-01-16 10:16 被阅读0次

.wrap或.wrapper -- 用于外侧包裹
.container或 .ct -- 包裹容器
.header -- 用于头部
.body -- 页面 body
.footer -- 页面尾部
aside、sidebar -- 用于侧边栏
.content -- 和header footer 对应,用于主要内容
.navigation -- 导航元素
.pagination -- 分页

.tabs > .tab -- tab 切换
.breadcrumbs -- 导航列表、面包屑
.dropdown -- 下拉菜单
.article -- 文章
.main -- 用于主体
.thumbnail -- 头像,小图像
.media -- 媒体资源
.panel -- 面板
.tooltip -- 鼠标放置上去的提示
.popup -- 鼠标点击弹出的提示

.button、.btn -- 按钮
.ad -- 广告
.subnav -- 二级导航
.menu -- 菜单
.tag -- 标签
.message或者.notice -- 提示消息
.summary -- 摘要
.logo -- logo
.search -- 搜索框
.login -- 登录

.register -- 注册
.username -- 用户名
.password -- 密码
.banner -- 广告条
.copyright -- 版权
.modal或者 .dialog -- 弹窗

var 名字 = {
状态: [
'inverse',
'toggled',
'switched',
'original',
'initial',
'identified',
'disabled',
'loading',
'pending',
'syncing',
'default'
],
修饰: [
'dark',
'light',
'shaded',
'flat',
'ghost',
'maroon',
'pale',
'intense',
'twisted',
'narrow',
'wide',
'smooth',
'separate',
'clean',
'sharp',
'aligned'
],
元素: [
'pagination',
'modal',
'popup',
'article',
'story',
'flash',
'status',
'state',
'media',
'block',
'card',
'teaser',
'badge',
'label',
'sheet',
'poster',
'notice',
'record',
'entry',
'item',
'figure',
'square',
'module',
'bar',
'button',
'action',
'knob'
],
布局: [
'navigation',
'wrapper',
'inner',
'header',
'footer',
'aside',
'section',
'divider',
'content',
'container',
'panel',
'pane',
'construct',
'composition',
'spacing',
'frame'
]
}

相关文章

  • 常见变量样式命名方法

    .wrap或.wrapper -- 用于外侧包裹.container或 .ct -- 包裹容器.header --...

  • 5分钟上手Sass

    用作变量 定义变量 使用变量 样式嵌套 Modules 样式模块化 通常命名以下滑线开头: _base.scss ...

  • 常见变量命名

    持续、不定时更新... 相信很多 Coder 会遇到一个很头痛的问题,就是变量命名。 反正我就是那种可以在变量命名...

  • atitit.变量命名的前缀

    atitit.变量命名的前缀 目录 1.1. 常见命名规范 1 1.2. 常见语言变量的前缀 1 2. 变量以$开...

  • 2018-10-24

    学习要点 ]1. 变量的含义 ]2. 变量的使用方法 3. 常见的数据类型 4. ]变量的命名规则...

  • 命名规范

    JavaScript 中的变量命名方法 三种命名方法 在程序语言中,通常使用的变量命名方法有三种:骆驼命名法(Ca...

  • 变量及数据类型

    变量及数据类型学习要点 变量的含义 变量的使用方法 常见的数据类型 变量的命名规则 赋值运算符和“+” 占位符 接...

  • 第二课:变量及数据类型

    学习要点 变量的含义 变量的使用方法 常见的数据类型 变量的命名规则 赋值运算符和“+” 占位符 接收用户的输入 ...

  • 2018-10-27

    变量及数据类型 学习要点 1. 变量的含义 2. 变量的使用方法 3. 常见的数据类型 4. 变量的命名规则 5....

  • 2019-01-03

    变量及数据类型 学习要点 1. 变量的含义 2. 变量的使用方法 3. 常见的数据类型 4. 变量的命名规则 5....

网友评论

      本文标题:常见变量样式命名方法

      本文链接:https://www.haomeiwen.com/subject/pknubttx.html