CSS Notes 1

Source: Internet
Author: User

<body style= "background-color (background color): Rgba (255,0,0,0) red;
Background-image (background plus picture): url (image address);
Background-repeat (Background repetition): no-repeat;
Background-position (background position): 100px 1080px;
Background-attachment (Background Attach): fixed (stationary);

<p style= "color:red" > Red </p>
<p style= "Test-indent:2em (multiple of the current letter);
Font-family (Font category): serif;
Font-style (italic font): italic (oblique);
Font-variant:small-caps (small capital letters);
Font-weight (font bold): bold;
Font-size (font becomes larger): 2EM;
Font-shadow (Font Shadow): 3px (X-axis extension 3 points) 5px (Y-axis extension 5 points) 5px (range) Rgba (0,255,0,0.5) ">
Line-height Set Line spacing </p>
Font:style Weight Size Height famiy (in order)

List-style-type:squsre (produces a list with a square item)

<table style= "border:1px Solid (solid line) blue;
Border-collapse:collapse (two-line merge) ">

Margin (margin) padding (defines the space between the element content and the border, not using negative values)
Positioning: relative positioning, absolute positioning, floating positioning
<style= "Position (positional properties): relative (offset); left:-20px; bottom:-20px;
Style=position:absolute (absolute); left:-20px;bottom:-20px; " >
</img>

Style Selector

...
<style>
P,TH,TD {border:1px solid blue}
p {background-color:red}
*.important {Color:green} (* represents all important)
*[title]{color:gray}
A:link (color not visited)
a:visited (hyperlink color visited) {color: #000000}
A:hover (mouse pointing up the color)
A:active (Color of mouse click)
</style>

<body>
<a href= "http//news.163.com" > NetEase news </a>

<style>
. Divcss5{text-decoration:underline}/* Underline underline */
. Divcss5_1{text-decoration:line-through}/* Line-through strikethrough Line */
. Divcss5_2{text-decoration:overline}//Overline underlined */
</style>
</body>


Border (border)
Transparent transparent overflow:hidden; (hidden floating) text-indent (text indent) text-align (vertical center)
Letter-spacing (character distance)

Background-image:url (xx.jpg) (Add background image)
Background-repeat: (Background repeat) fixed (fixed)
Background-position: (Displays the desired icon in a large canvas by setting the X and y-axis pixels)

CSS Notes 1

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.