CSS声明顺序

1.Positioning

   定位 ,从正常的文档流中移除元素,还能覆盖盒模型

2.Box model

   盒模型, 决定组件的尺寸和位置

3.Typographic

  文本设置,只是影响组件的内部(inside)

4.Visual

  视觉效果,背景颜色,只是影响组件的内部(inside)


5.Other

   手势操作等

.box{
  // Positioning
  position: relative;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index:100;

  // Box model
  display: block;
  box-sizing: border-box;
  width: 100px;
  height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  margin: 10px;
  float: left;
  overflow: hidden;

  // Typographic
  font: normal 13px ;
  line-height: 30px;
  text-align: center;

  // Visual
  background: #E6E6E6;
  color: #ccc;
  opacity: .8;

  //Other
  cursor: pointer;

}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值