背景:
background-repeat:
值 | 描述 |
---|---|
repeat | 默认。背景图像将在垂直方向和水平方向重复。 |
repeat-x | 背景图像将在水平方向重复。 |
repeat-y | 背景图像将在垂直方向重复。 |
no-repeat | 背景图像将仅显示一次。 |
inherit | 规定应该从父元素继承 background-repeat 属性的设置。 |
背景不变可以滚动:
值 | 属性 |
---|---|
background-attachment | fixed |
节省代码量的写法:
eg:background: #ff0000 url(/i/eg_bg_03.gif) no-repeat fixed center;
字体-文字:
font-family:“宋体”;
font-size:默认为**16px = 1em**
font-weight:(100-900)
值 | 属性 |
---|---|
normal | 普 |