css常见属性

来源:互联网 发布:易语言源码与模块解析 编辑:程序博客网 时间:2024/04/29 15:33

  作为一个新手,我将今天学习到的css中常见元素属性分享给大家。

  1.高宽尺寸 2.文本 3字体 4背景 5列表 6表格 7轮廓 8盒磨具 9定位 10布局

1高宽尺寸:

     高度尺寸:height.max-height.min-height

     宽度尺寸为width.max-+ .min-+ 它们的单位是像素或百分比。

 2文本

Color:设置文本颜色 ;Text-indent:文本缩进;Text-align:文本水平对齐方式;

Text-decoration:;Letterspacing:字间距;Line-height:行高设置。

3字体

font-family默认字体为微软雅黑;font-size字体大小;font-weight字体粗细;font=style字体风格。

4背景

background

+-color 背景色;+-image背景图片;+-postion背景位置;+-repeat背景图片重复度

5列表

+-style-image;+-style-position

6表格

Border

+-collapse设置表格边框是否合并

+-spacing设置相邻单元格的边框距离

+-side标题表格位置

empty-cells 设置空单元显示方式

7轮廓

Outline

+-width轮廓宽度

+-style轮廓样式

+-轮廓颜色

8盒模型

padding内边距;broder边框;Margin外边距

标准盒子高=content+内边距*2+边框*2+外边框*2

在IE低版本浏览器中盒子高=content+外边框*2

至于定位和布局,我还没学。就到这里吧。

                                             
0 0
原创粉丝点击