css常用的命名规则与书写顺序

CSS 书写顺序

  1. Formatting Model 相关属性包括:position / top / right / bottom / left / float / display / overflow 等
  2. Box Model 相关属性包括:border / margin / padding / width / height 等
  3. Typographic 相关属性包括:font / line-height /text-align / word-wrap 等
  4. Visual 相关属性包括:background / color /
    transition / list-style 等

命名规则

命名解释
header头部
nav导航
sub-nav子导航
menu菜单
sub-menu子菜单
man主体
sidebar侧边栏
footer底部
wrap外层容器
content内容
container容器
login-bar登录栏
regsiter注册
banner焦点图
news新闻
status-bar状态栏
hot热点
audio音频
video视频
image图像
photo图片
music音乐
list列表
item项目
copyright版权
title标题
edit编辑
update更新
datetime时间
tips小提示
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值