设计制作 > CSS/HTML > 文章内容

HTML和CSS教材:CSS属性与JavaScript样式属性

2016-10-4编辑:sunny

CSS属性与JavaScript样式属性

1.       !important

2.       :active

3.       :first-letter

4.       :first-line

5.       :hover

6.       :link

7.       :visited

8.       background:

background: [url(…)][fixed/scroll][#…][top/left/right/bottom/center]

           [repeat/norepeat/repeat-x/repeat-y]

9.       border

border:[bottom/left/right/top][#…]

[none/dashed/dotted/double/grove/inset/outset/ridge/solid][thick/thin/…]

10.  border-collapse

border-collapse:collapse/separate

11.  clear

12.  clip

13.  color

14.  display

display:[block/inline/none/compact/inline-break/list-item/table-header/footer-group]

15.  float

16.  font

font:[family][style][size][variant][weight][height]

17.  list-style

list-style:[type][position][image]

18.  overflow

19.  position

position:[static/absolute/relative]

20.  text-decoration

text-decoration:[none/blink/line-through/overline/underline]

21.  text-indent

22.  text-align

text-align:[left/right/center/justify]

23.  text-justify

text-justify:[auto/distribute-all-lines/inter-cluster/inter-ideograph

/inter-word/kashida/newspaper]

24.  text-overflow

text-overflow:[ellipsis/clip] 必须设置overflow:hidden,且以<nobr>分行

25.  visibility

visibility:[inherit/visible/hidden/collapse]

26.  writing-mode

writing-mode:[lr-tb/tb-lr]

27.  z-index

28.  zoom

HTML和CSS教材:HTML属性

热点推荐

登录注册
触屏版电脑版网站地图