Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

The Best-Practice Guide to xHTML and CSS phần 10 pps
PREMIUM
Số trang
43
Kích thước
9.0 MB
Định dạng
PDF
Lượt xem
1416

The Best-Practice Guide to xHTML and CSS phần 10 pps

Nội dung xem thử

Mô tả chi tiết

294 |  Appendix B: Css Reference

smaller

xx-small

x-small

small

medium (default)

large

x-large

xx-large

[percentage]

[length]

Example

body { font—size: 80%; }

h1 { font—size: 2em; }

Related properties

font, font-family

font-style

Italic and oblique characteristics of a font.

See Chapter 2, “Text.”

Possible values

inherit

normal

italic

oblique

Properties  | 295

Example

h1, h2 { font-style: italic }

Related properties

font, font-weight

font-variant

Used to convert lowercase letters to small uppercase letters.

See Chapter 2, “Text.”

Possible values

inherit

normal (default)

small-caps

Example

p { font-variant: small-caps; }

Related properties

font, text-transform

font-weight

The boldness of a font. Values 100 to 900 are supposed to be different scales of

boldness, but in practice browsers tend not to reliably differentiate between nine

separate levels, which is why the value of font-weight tends to be simply either

normal or bold.

See Chapter 2, “Text.”

Possible values

inherit

296 |  Appendix B: Css Reference

100, 200, 300, 400, 500, 600, 700, 800, or 900

normal—Equivalent of 400

bolder

bold—Equivalent of 700

lighter

Example

.chubbybaby { font-weight: bold }

Related properties

font, font-style

height

Specifies the height of the content area of a block box (not including padding, bor￾der, or margin).

See Chapter 5, “Layout.”

Possible values

inherit

auto (default)

[percentage]

[length]

Example

#monstermunch {

padding: 1em;

height: 3em;

}

Properties  | 297

Related properties

width, min-height, max-height

left

For absolutely positioned boxes, specifies how far from the left of the containing

positioned box (or the page, if there isn’t one) the box should be.

For relatively positioned boxes, specifies how far from the left a box should be

shifted.

See Chapter 5, “Layout.”

Possible values

inherit

auto (default)

[percentage]

[length]

Example

#sold {

position: absolute;

left: 150px;

}

Related properties

right, top, bottom, position

letter-spacing

The spacing between letters.

See Chapter 2, “Text.”

Tải ngay đi em, còn do dự, trời tối mất!