css页面样式设置

来源:互联网 发布:网络新兴词汇 编辑:程序博客网 时间:2024/05/16 08:00
1:设置css的字体属性
1:font-family设置字体
2:font-size设置字体大小
3:font-style设置字体风格
4:font-weight设置加粗字体
5:font-variant小型的大写字母
6  font --字体,复合属性
代码如下
  p{
            font-family: fantasy;
            font-size: 30px;
            font-weight: 100;
        }
2:=================
颜色及背景属性
1:color元素的颜色
2:background-color背景颜色
3:background-image背景图像
4:backgroud-repeat背景重复
repeat表示x,y方都重复
repeat-x--x重复
repeat-y--y重复
no-repeat--不重复
3:==============
背景附件background-attachment
用来设置背景图像是随对象内容滚动还是固定
取值
scroll--滚动
fixed--固定
4:背景位置-background-position
5:复合属性backgroud
4================
文本属性
1:单间间隔word-spacing
2:字符间隔--letter-spacing
3:文字修饰-text-decoration设置下划线,删除线
取值范围:none,underline,overline,line-through,blink
4:
纵向排列
vertical-algin
也叫垂直对齐方式
5:
文本转换text-transform
用来转换英文字母的大小
6:
text-algin文本排列
使文本元素左右对齐,居中
取值范围:
justify为两端对齐
7:
文本缩进--text-indent
8:
文本行高--line-height
9:
处理空白--while-space
5=============
边距与填充属性
6=====
列表属性
0 0
原创粉丝点击