css简写 vertical-align background font

1、vertical-align:sub(下标) | super (上标)| 5px(往上移动) | -5px(往下移动) | top | bottom | text-bottom | text-top |middle
2、背景图位置:
background-position:纵向(top | center | bottom)   横向(left | center | right);
//注意:用此css,先需要把背景固定background-attachment:fixed;若只有一个值第二个值省略则默认为center;
如:body{background-position:top right;background-attachment:fixed;}
background简写形式:background-color | background-image  | background-repeat | background-attachment | background-position
例如:
.bg01{
   background-color: #FFCC66;
   background-image: url("path/bgFile.gif");
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-position: left top;
}
上面可以简写为:
.bg01{background:#FFCC66  url("path/bgFile.gif")  no-repeat  fixed  left  top; }
3、list列表:
list-style-type:none|disc|circle|square|decimal|lower-roman|upper-roman|lower-alpha|upper-alpha
list-style-position:inside 清单项目较往右移|outside清单项目正常显示(默认)
简化形式:list-style:circle inside url("sdf.jpg");
4、font的简写形式:font-style | font-variant | font-weight | font-size | font-family
例如: 
.fontStyle01{
        font-style: italic;
        font-variant: small-caps;
        font-weight: bold;
        font-size: 30px;
        font-family: arial, sans-serif;
    }
上面的样式简写为:
.fontStyle01{font:italic small-caps bold 12px arial,verdana;}






 
 


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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值