CSS Common Information Quick Search manual

Source: Internet
Author: User
Tags manual

Literal property identifier Action attribute value

Font-family: Define type of text, order to find, first find the selected value, if you can not find the default value of the song, bold, etc.

Font-style: Defines font style. Normal (standard) italic (italic) oblique (italic)

Font-variant: Changing the display of English letters NORMAL,SMALL-CAPS (small capital letters)

Font-weight: Make the font bold normal (equivalent to), Bold,lighter,bolder or 100~900 nine number

Font-size: Defines any number of font size, in pt (dot matrix), px (screen pixels) as the unit

Text Properties text-decoration: Decorated text underline (underlined) overline (underlined) line-thought (strikethrough) None (clear underline, default)

Text-align: Where and how text is displayed left,right,center,justify (aligned from left to right)

Colors attribute color: Define font Color 1. Keywords in English words

2. With hex 3. RGB value, Usage: rgb (255,0,0) 0~255

Background properties

Background-color: Defines the use of the background color with the color properties

Background-image: Defining background Image usage: Body{background-image:url (bg.gif)}

where "Bg.jif" is any picture

Background-repeat: Copying backgrounds in different ways repeat-x: copying in a horizontal direction

Repeat-y: Copying vertically

Fixed scroll for background-attachment background: background content scrolling along with foreground

Fixed: Background not moving

Background-position: Define background position top: Background and foreground content aligned

Bottom,left,right

Mode: XXPT XXPT or x percent X or left top

(in two English words as a combination, note: There are spaces in the middle!!)

Boundary Property Margin-top: The default value on the top boundary of an object is: 0

Keywords: auto

Value: pt,px,in (inches), cm (cm) as unit

Margin-right: Objects to the right side of the same.

Margin-bottom: Objects under the border ibid.

Margin-left: Objects to the left side of the same.

Concise form annotation of boundary

div{margin:10cm} All boundaries are 10cm

div{margin:10cm 3cm} up and down to 10cm, about 3cm

div{margin:1cm 3cm 5cm 7cm} on 1cm, right 3cm, 5cm, left 7cm.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.