1.3.非布局样式
字体
行高




背景
背景格式

边框

滚动

文字折行
装饰性属性及其它
Last updated







Last updated
.c1{
background: write;
background: #FF0000;
background: hsl(0, 100%, 50%);
background: hsla(0, 100%, 50%, .3);
background: rgb(255,0,0);
background: rgba(255,0,0..3);
background: url(./test.png);
background: red url(./test.png);
}.c2{
backgroud: --webkit-linear-gradient(left,red,green); // 线性渐变 老的写法
backgroud: linear-gradient(to right,red,green); // 线性渐变 标准写法
backgroud: linear-gradient(45deg,red,green); // 线性渐变 带角度
backgroud: linear-gradient(135deg,red 0,green 10%, blue 100%); // 线性渐变 多种颜色
backgroud: linear-gradient(135deg,transparent 0,transparent 49.5%, green 49.5%, green 50.5%, transparent 50.5%,transparent 100%); // 划线
backgroud: linear-gradient(45deg,transparent 0,transparent 49.5%, red 49.5%, red 50.5%, transparent 50.5%,transparent 100%); // 多背景
backgroud-size: 30px 30px
}background-repeat: no-repeat // 不要平铺
background-repeat: repeat-x // X方向平铺
background-repeat: repeat-y // Y方向平铺background-position: center center // 中间位置
background-position: 20px 30px // 距左边20像素,距离顶部30个像素background-size: 100px 50px.c1{
border: 1px solid;
width: 8em;
overflow-wrap: normal; //其他可选值:break-word 打断单词,会考虑单词的完整性
word-break: normal;//其他可选值:break-all 打断单词,不考虑单词的完整性;keep-all 所有单词都保存完整性,中文句子也会保存完整
white-space: normal; //其他可选值: nowrap 不用换行
}.weight{
font-weight: normal; // 400
font-weight: bold; // 700
font-weight: bolder; // 取决于父级
font-weight: lighter; // 取决于父级
font-weight: 200; // 范围0-900
}