This article mainly introduces the use of CSS how to achieve the effect of relief, the text gives a detailed sample code and explanation, I believe that there is a certain reference value for everyone, interested in the following people to see
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
The question of how CSS vertically centers an element is already a cliché. Whether for a novice or a veteran, during the interview is often asked. Two days ago in a flex video tutorial, which mentions the question of the center of the element, so
I. The restrictive effect of relative on absolute
1, limit left/top/right/bottom positioning. Absolute default is in the upper left corner, when the parent class is set to Relative,absolute is limited to the parent class's area, when setting
1.transition
Syntax: transition:property duration timing-function delay;
Transition-property CSS property name to set the transition effect
Syntax: Transition-property:none | All | Property
None no attribute will get over effect
All properties will
P+css detailed
✪p+css "The term is actually an inaccurate term.
In the first note to make a mistake, it is called "p+css" is an inaccurate term, is the Chinese people to the layout of the standard page of the name of the method, is not enough to
I. Method citation sources and applications
This dynamically loaded CSS method Loadcss, stripped from Sea.js, and made further optimizations (optimization code will be analyzed later).Because the company project needs to use lazy loading to improve
Previous words
Navigation bar tab is very common in the page, this article said that the CSS implementation of the Navigation bar tab three ways
Layout
As shown, a number of definitions are defined first, and the whole module is called navigation,
Text wrapping is a very common but unobtrusive feature. You don't have to set anything, the browser will automatically wrap. For example, in English, the browser chooses to wrap a half-width space or a hyphen, depending on the size of the container.
This article by default you've read my previous article p+css Picture List layout (i), let's implement a more complex picture list layout. Take the following style as an example
For convenience, I only list the layout examples for
Relative positioning of positioning layouts in CSS-relative
One of the biggest features of relative positioning is that you run away from the position and occupy the original position, not to the surrounding objects such as text flow. Relative
Today, I write the CSS style, which used the tag, set a series of effects after the run, found that the location and settings are discrepancies. Open the check on Chrome and find the following paragraph in the label's styles bottom:
UL, menu,
In the front page of the website, sometimes some triangles are used, in addition to the way the image is used, the border property of the CSS can also make the corresponding triangles. So, how to make use of border to achieve the production of
attr () Exactly, should not be a property, but a function of CSS, let us first look at the introduction of the MDN:
Summary
The attr () CSS function is used to retrieve the value of a attribute of the selected element and use it in the style Shee T.
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