HTML5 mobile Web interface style css3-5

Source: Internet
Author: User

% H2 = "Chapter 6 mobile Web interface style css3"
% Section

% P = "selector"

% P

% Article

% Lable = "attribute selector"

% Lable. zrticle = "completely [class = article]"

% Lable. ddzrticless = "contains [class * = article]"

% Lable. abbddd = "first letter [class = A]"

% Lable. aaaaae = "letter [class = E]"

% Article

% Lable = "pseudo class selector"

% Div. Before = "% Div. Before content: Text"

% Lable. After = "% lable. After content: Text"

% Lable. First-child = "% lable. First-Child content: Text"

% Lable. Last-child = "% lable. Last-Child content: Text"

% Lable. Nth-child = "% lable. Nth-Child content: Text"

% Lable. Nth-last-child = "% lable. Nth-last-Child content: Text"

% P = "shadow"

% P

% Article. Shadow

% Lable. Box-shadow = "this is the shadow effect box-Shadow: 3px 4px 2px #000 ;"

% Lable. Text-shadow = "this is the text shadow effect text-Shadow: 3px 4px 2px #000 ;"

% P = "background"

% P

% Article. Background

% Lable. Background-size = "background-size background size"

% Lable. Background-clip = "background-clip background Cropping Area"

% Lable. Background-origin = "background-origin reference start position"

% Lable. Background = "background"

% P = "rounded corner"

% P

% Article. radius-Art

% Lable. Lab-radius = "radius rounded corner"

% P = "media queries mobile device style"

% P

% Article. radius-Art

% Lable. Lab-radius = "radius rounded corner"

% Link {rel = "stylesheet",: Media => "screen and (max-width: 600px)": href => "small.css "}

Bytes ----------------------------------------------------------------------------------------------------------------

. Page-FrontPage-index {
Background-color: # FFF;
[Class = zrticle] {
Background-color: red;
}
[Class * = zrticle] {
Background-color: # ABC;
}
[Class ^ = A] {
Background-color: # def;
}
[Class $ = E] {
Background-color: #543;
}

Div. Before {
Content: 'Before add ';
}

. Shadow {
. Box-shadow {
Box-Shadow: 3px 4px 2px #000;
-WebKit-box-Shadow: 3px 4px 2px #000;
-Moz-box-Shadow: 3px 4px 2px #000;
Padding: 5px 4px;
}
. Text-shadow {
Text-Shadow: 3px 4px 2px #000;
Color: #666;
Font-size: 16px;
}
}

. Background {
Height: 80px;
. Background-size {
Background: URL (AUTH/auth-bg.jpg) No-repeat 0px 0px;
Background-size: 50px 40px;
Padding: 10px;
}
. Background-clip {
Background: URL (AUTH/auth-bg.jpg) No-repeat 0px 0px;
Background-clip: Content-box;/* | padding-box | border-box | no-clip ;*/
Padding: 10px;
}
. Background-origin {
Background: URL (AUTH/auth-bg.jpg) No-repeat 0px 0px;
Background-origin: content;
Padding: 10px;
}
. Background {
Background: URL (AUTH/auth-bg.jpg) No-repeat 0px 0px;
}
}
. Radius-art {
. Lab-radius {
Background: URL (AUTH/auth-bg.jpg) No-repeat 0px 0px;
Border-radius: 10px 5px;
Margin: 40px;
}
}

. Media {
@ Media (max-width: 600px ){
. Facet_sidebar {
Display: none;
}
}

 

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.