CSS (2)

Source: Internet
Author: User

Font

Set font: {Fon-family:sans-serif;}

Font bold: {fon-weight:600;} 600 equals one strong

Font size: {fon-size:14px;}

Connection A

A:link{color:red: The connection that was not accessed is red

A:visited{color:red: The connection that has been accessed is red

A:hover{color:red, the mouse moves to the connection is red

a:active{color:red; The connection being clicked is red

{Text-decoration:none;} Remove the Underline

{background-color:red} background color is red

List

Sequence LIST: OL

Unordered LIST: UL

Black dots for PICTURES: ul li{background:url ("Heder.jpg");}

Remove black dots: {list-style-type:none;}

Table Border Blue: td{border:1px solid Blue}

Text alignment: Td{text-align:right;}

Inner margin: {padding:10px;}

margin: {margin-10px;}

Positioning

Relative positioning: {position:relative;} out of the text stream, but retains its original position without being occupied

Absolute positioning: {position:absolute;} is removed from the text stream and does not retain its original location

Floating: {float:left;} Left floating (right floating: starboard) floating after converting row level

Border

Border Outcine The former to occupy the width is also to affect the layout is not recommended, the latter does not occupy the width does not affect the layout, we recommend the use of the latter

{border:solid;} solid Line

{border:dashed;} dashed line

{border:dotted;} dot Line

{border:double;} double Line

{border-radius:20px} fillet border

{box-shadow:10px 10px 5px red;} Right down 10px long shadow, 5px is the width of the shadow

CSS (2)

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.