css手册Word下载.docx

上传人:b****5 文档编号:21265959 上传时间:2023-01-29 格式:DOCX 页数:27 大小:19.85KB
下载 相关 举报
css手册Word下载.docx_第1页
第1页 / 共27页
css手册Word下载.docx_第2页
第2页 / 共27页
css手册Word下载.docx_第3页
第3页 / 共27页
css手册Word下载.docx_第4页
第4页 / 共27页
css手册Word下载.docx_第5页
第5页 / 共27页
点击查看更多>>
下载资源
资源描述

css手册Word下载.docx

《css手册Word下载.docx》由会员分享,可在线阅读,更多相关《css手册Word下载.docx(27页珍藏版)》请在冰豆网上搜索。

css手册Word下载.docx

background-repeat

设置背景图像是否及如何重复。

∙repeat

∙repeat-x

∙repeat-y

∙no-repeat

CSS背景属性

CSS边框属性(border)

border

简写属性。

作用是在一个声明中用来设置四个边框的所有属性。

∙border-width

∙border-style

∙border-color

border-bottom

作用是在一个声明中用来设置下边框的所有属性。

∙border-bottom-width

border-bottom-color

设置下边框的颜色。

border-color

2

border-bottom-style

设置下边框的样式。

border-style

border-bottom-width

设置下边框的宽度。

∙thin

∙medium

∙thick

∙length

设置四个边框的颜色,可以设置一到四个颜色。

color

border-left

用于在一个声明中设置左边框的所有属性。

∙border-left-width

border-left-color

设置左边框的颜色。

border-left-style

设置左边框的样式。

border-left-width

设置左边框的宽度。

border-right

将所有用于右边框的属性设置于一个声明中。

∙border-right-width

border-right-color

设置右边框的颜色

border-right-style

设置右边框的样式

border-right-width

设置右边框的宽度。

设置四个边框的样式,可以设置一到四个样式。

∙hidden

∙dotted

∙dashed

∙solid

∙double

∙groove

∙ridge

∙inset

∙outset

border-top

将所有用于上边框的属性设置于一个声明中。

∙border-top-width

border-top-color

设置上边框的颜色。

border-top-style

设置上边框的样式。

border-top-width

设置上边框的宽度。

border-width

在一个声明中设置四个边框的宽度,可以设置一到四个值。

CSS文本属性

设置文本颜色。

3

direction

设置文本方向。

∙ltr

∙rtl

letter-spacing

设置字符间距。

∙normal

text-align

对齐元素中的文本。

∙left

∙right

∙center

∙justify

text-decoration

向文本添加修饰。

∙underline

∙overline

∙line-through

∙blink

text-indent

缩进元素中文本的首行。

∙%

text-shadow

 

∙color

text-transform

控制元素中的字母。

∙capitalize

∙uppercase

∙lowercase

unicode-bidi

∙embed

∙bidi-override

5

white-space

设设置元素中空白的处理方式。

∙pre

∙nowrap

word-spacing

设置字间距。

CSS字体属性(font)

font

作用是将所有针对字体的属性设置在一个声明中。

∙font-style

∙font-variant

∙font-weight

∙font-size/line-height

∙font-family

∙caption

∙icon

∙menu

∙message-box

∙small-caption

∙status-bar

font-family

字体类型名称或者针对某元素的类属族名名称的优先列表。

∙family-name

∙generic-family

font-size

设置字体的尺寸。

∙xx-small

∙x-small

∙small

∙large

∙x-large

∙xx-large

∙smaller

∙larger

font-size-adjust

为元素规定aspect值。

nonenumber

-

font-stretch

收缩或拉伸当前的字体族。

∙wider

∙narrower

∙ultra-condensed

∙extra-condensed

∙condensed

∙semi-condensed

∙semi-expanded

∙expanded

∙extra-expanded

∙ultra-expanded

font-style

设置字体样式。

∙italic

∙oblique

font-variant

以小型小写字体或者正常字体显示文本

∙small-caps

font-weight

设置字体的粗细。

∙bold

∙bolder

∙lighter

∙100

∙200

∙300

∙400

∙500

∙600

∙700

∙800

∙900

CSS外边距属性(margin)

margin

在一个声明中设置外边距属性。

∙margin-top

∙margin-right

∙margin-bottom

∙margin-left

margin-bottom

设置元素的下外边距。

∙auto

margin-left

设置元素的左外边距。

margin-right

设置元素的右外边距。

margin-top

设置元素的上外边距。

CSS内边距属性(padding)

padding

作用是在一个声明中设置元素的内边距属性。

∙padding-top

∙padding-right

∙padding-bottom

∙padding-left

padding-bottom

设置元素的下内边距。

padding-left

设置元素的左内边距。

padding-right

设置元素的右内边距。

padding-top

设置元素的上内边距。

CSS列表属性(list)

list-style

用于将所有用于列表的属性设置于一个声明之中。

∙list-style-type

∙list-style-position

∙list-style-image

list-style-image

将图象设置为列表项标记。

list-style-position

设置列表中列表项标记被放置的位置。

∙inside

∙outside

list-style-type

设置列表项标记的类型。

∙disc

∙circle

∙square

∙decimal

∙decimal-leading-zero

∙lower-roman

∙upper-roman

∙lower-alpha

∙upper-alpha

∙lower-greek

∙lower-latin

∙upper-latin

∙hebrew

∙armenian

∙georgian

∙cjk-ideographic

∙hiragana

∙katakana

∙hiragana-iroha

∙katakana-iroha

marker-offset

7

内容生成

content

生成文档中的内容。

与:

before以及:

after伪元素配合使用。

stringurlcounter(name)counter(name,list-style-type)counters(name,string)counters(name,string,list-style-type)attr(X)open-quoteclose-quoteno-open-quoteno-close-quote

counter-increment

设置某个选取器每次出现的计数器增量。

noneidentifiernumber

counter-reset

设置某个选择器出现次数的计数器的值。

quotes

设置引号的类型。

nonestringstring

轮廓

outline

用来在一个声明中设置所有的outline属性。

outline-coloroutline-styleoutline-width

1.5

outline-color

设置围绕元素的轮廓的颜色。

colorinvert

outline-style

设置围绕元素的轮廓的样式。

nonedotteddashedsoliddoublegrooveridgeinsetoutset

outline-width

设置围绕元素的轮廓的宽度。

thinmediumthicklength

CSS尺寸属性(Dimension)

height

设置元素高度。

line-height

设置行间距。

∙number

max-height

设置元素的最大高度。

max-width

设置元素的最大宽度。

min-height

设置元素的最小高度。

min-width

设置元素的最小宽度。

width

设置元素的宽度。

CSS分类属性(Classification)

clear

设置不允许存在浮动对象的边

∙both

cursor

规定光标类型(形状)

∙crosshair

∙default

∙pointer

∙move

∙e-resize

∙ne-resize

∙nw-resize

∙n-resize

∙se-resize

∙sw-resize

∙s-resize

∙w-resize

∙text

∙wait

∙help

display

设置如何及是否显示某元素

∙inline

∙block

∙list-item

∙run-in

∙compact

∙marker

∙table

∙inline-table

∙table-row-group

∙table-header-group

∙table-footer-group

∙table-row

∙table-column-group

∙table-column

∙table-cell

∙table-caption

float

设置图像或文本出现于另一元素中的何处

position

元素的定位方式:

静态、相对定位、绝对定位、固定定位

∙static

∙relative

∙absolute

visibility

设置元素可见或不可见

∙visible

∙collapse

CSS定位属性(Positioning)

bottom

设置定位元素下外边距边界与其包含块下边界之间的偏移。

clip

设置元素的形状。

∙shape

left

设置定位元素左外边距边界与其包含块左边界之间的偏移。

overflow

设置当元素的内容溢出其区域时发生的事情。

把元素放置到一个静态的、相对的、绝对的、或固定的位置中。

right

设置定位元素右外边距边界与其包含块右边界之间的偏移。

top

设置定位元素的上外边距边界与其包含块上边界之间的偏移。

vertical-align

设置元素的垂直排列。

∙baseline

∙sub

∙super

∙top

∙text-top

∙middle

∙bottom

∙text-bottom

z-index

设置元素的堆叠顺序。

CSS表格属性

border-collapse

设置是否把表格边框合并为单一的边框。

border-spacing

设置分隔单元格边框的距离。

(仅用于"

separatedborders"

模型)

caption-side

设置表格标题的位置。

empty-cells

设置是否显示表格中的空单元格。

table-layout

设置显示单元、行和列的算法。

CSS伪类

伪类

作用

:

active

将样式添加到被激活的元素。

8

focus

将样式添加到被选中的元素。

hover

当鼠标悬浮在元素上方时,向元素添加样式。

link

将特殊的样式添加到未被访问过的链接。

visited

将特殊的样式添加到被访问过的链接。

first-child

将特殊的样式添加到元素的第一个子元素。

lang

允许创作者来定义指定的元素中使用的语言。

CSS伪元素

伪元素

first-letter

向文本的第一个字母添加特殊样式。

first-line

向文本的首行添加特殊样式。

before

在元素内容之前插入内容。

after

在元素内容之后插入内容。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工作范文 > 行政公文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1