Proficient in CSS Version2 notes 2. Trivia

Source: Internet
Author: User

Add background: Background-img:url (URL) + attributes;Rounded Box: selector {border-radius: unit;} Create a rounded corner of x units around the elementProjection: Box-shadow: Vertical and horizontal offsets, the width of the projection (that is, the degree of ambiguity), and the color can be combined with Border-radius to create a drop shadow on the Fillet box. Opacity opcity:0-1 decimal 0 means full transparency 1 means full opacity Rgba (x,x,x,x) RGB for red, green, blue A for transparency Rgba value is only assigned to the element we declare, No child element inherits transparency, and opcity property is always inherited. Link style A: (l,v,h,f,a) {} (: Link,visited,hover,focus,active); Anchor: Jump to the page by ID value such as jump to Go</&gt, and also with pseudo-class elements: Target sets properties to highlight it to facilitate the search for #go:target{font-family: ' Microsoft yahei ', ' Helvetica Neue ', SimSun; Background-color:rgb (240 , 231, 180); " > can set a to Display:block to create a button-like link 8 implementation of the drop-down menu: HTML:
    • Home
    • Products
    • Silverback
    • Fontdeck
    • Services
    • Design
    • Development
    • Consultancy
    • Contact
Css:ul.nav,nav ul{margin:0;padding:0;list-style-type:none;float:left;border:1px solid #486B02;} Ul.nav Li{float:left;width:8em;} Ul.nav li Ul{width:8em;position:absolute;left: -999em;7}.nav li:hover Ul{left:auto;} There is no cosmetic doubt Ul.nav and. Nav ul difference: ul.nav{}

Represents the element that looks for a class name called Nav that is represented by UL

. Nav ul{}
The representative looks for the element of the class name called Nav and then it follows the label of the HTML called UL

Proficient in CSS Version2 notes 2. Trivia

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.