This article mainly introduces the CSS3-based production of three-dimensional effect navigation menu related materials, the need for friends can refer to the first to show you, the effect is as follows:
Source:
CSS Code copy content to clipboard
One
Overview of common pseudo-classes for tags
A:link{color:blue} a:visited{color:red} A:hover{color:green} A:active{color:purple}
linkThis pseudo-class is active when there is
Use
hoverMovement change
pOf
margin-topCan make the small module up, while in the bottom of the small module two diagonally divided into two colors of the square, relative to the small module absolute positioning, you can create a simple
Usually need to pay more attention, touch not compatible how to see more can I use, the amount, there is to understand how the page is compatible to what extent
1 whether compatibility is required
A come up to think of this problem, some effect
Oocss and BEM
We encourage the use of some combination of oocss and BEM for the following reasons:
Can help us clarify the clear and rigorous relationship between CSS and HTML.
can help us create reusable, easy-to-assemble components.
Selector:first-child This is the descendant selector. Weird, be careful to avoid rather than understand.
Selector:first-child
The first element in the current selector selected element collection
Selector:last-child
The last element in the
The Transform property in CSS allows you to modify the coordinate space of the CSS visual model. With transform, elements can be moved (translate), rotated (rotate), scaled (scale), and skewed (skew).
If the property has a value other than none, a
CSS is an abbreviation for the English cascading style sheets, called Cascading style sheets, to beautify the page. There are three ways of existence:
element inline, page embedding, and external ingestion. Compare the pros and cons of three
Sometimes in the process of writing CSS, some restrictions always do not work, which involves the CSS style overlay problems, as follows
#navigator { height:100%; width:200; Position:absolute; left:0; Border:solid 2 #EEE;}.
Compass is a tool library for SASS
Based on Sass, Compass encapsulates a series of useful modules to complement and enrich sass's energy
Installation:Compass was developed in the Ruby language, so you must install Ruby before installing it.Command:
Here are just a few examples of situations where individuals think they are easy to blur.
The HTML structure is as follows:
test Row height
Parent element is number, child element is not set
. parent{ font-size:12px;
This article mainly introduces the usage of float in CSS, and several kinds of layout methods commonly used in Web pages. Have a certain reference value, follow the small series below to see it
float and margin
Two adjacent floating elements, when
Css3d Summary
3d transform (3D variant) (rotate skew scale translate)
Basic knowledge
Perspective (Visual range, depth of field) Perspective-origin (viewpoint)Transfrom
(1) coordinates x y Z
(2) Deformation base point position transform-origin(3)
Many of the other properties of CSS are easy to understand, such as fonts, text, backgrounds, and so on. Some CSS books will also be on these simple attributes of the introduction of a very small, but just ignore some difficult properties to explain,
Today I send my own CSS framework--base.css, the role is to reset the browser default style and provide generic atomic class.
@charset "Utf-8";/*! * @ Name: Base.css * @ function: 1, reset browser Default style * 2, set generic atomic class *//*
Priority of Style
Multiple styles (multiple styles): If the external style, inner style, and inline styles apply to the same element at the same time, this is the case for multiple styles.
In general, the priority is as follows:
(external style)
The clip () method in canvas is used to cut arbitrary shapes and sizes from the original canvas. Once an area is clipped, all subsequent drawings are restricted to the area being clipped (no access to other areas on the canvas)
You can also save
What is design mode?
There have been jokes, design patterns are used by engineers to show off with others, appear tall, and some people say, not design mode useless, you have not been able to understand it, will use it.
Let's take a look at the
When using Webstorm to learn the front end, I was asked in 2016-02-01 how to set the Webstorm color hint. It is said that Niang did not set the method, I looked for a set after the location found, today wrote this set method to illustrate.
Software
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