北京城乡建设网站首页,实体店会员卡管理系统,常德网站设计,mp3网站源码在CSS中有许多简写的样式#xff0c;它们被广泛使用。简写最好按照如下顺序进行书写
font
font: font-style font-weight font-size/line-height font-familyfont-style
italic//斜体
normal//正常字体(默认)font-weight
一般填写数字
400 normal(默认值)
700 bold(默认值)f…在CSS中有许多简写的样式它们被广泛使用。简写最好按照如下顺序进行书写
font
font: font-style font-weight font-size/line-height font-familyfont-style
italic//斜体
normal//正常字体(默认)font-weight
一般填写数字
400 normal(默认值)
700 bold(默认值)font-size
16px(默认值)font-family
直接填写字体名称即可如 MicroSoft Yahei如
div{font: italic 700 14px/20px Microsoft Yahei;
}注意 不需要的属性可以省略取默认值但是必须保留font-size和font-family属性否则font属性将不会生效
background
background: background-color background-image background-repeat background-attachment background-position
背景颜色 背景图片 背景平铺 背景固定 背景图片位置如
background: transparent url(images/male.png) no-repeat center center;同样的对于你不需要的属性可以省略不写
border
border: border-width border-style border-color如
border: 1px solid red;表格 tablethead //表明是表头tr //一行th姓名/th //一个单元格th性别/thth电话/th/tr/theadtbody //非表头部分trtd李白/tdtd男/tdtd18681282718/td/trtrtd小美/tdtd女/tdtd15228578292/td/tr/tbody/table