Cases
/*Name: Vertical Horizontal CenterUsage:1. [principle] set width and height, the parent node is position:relative; CSS is written in this way:position:absolute;left:50%;top:50%;Half of the margin-left:-element's own width;Half of the
First, about IE7, IE8 does not support CSS3 Border-radius
CSS3 Border-radius can easily achieve a circle and rounded corners, however, the need to ie9+ browser to do. Mobile end naturally no problem, but many (especially for the C side) PC page is
One, add style sheet to HTML document1, inline style2, inline style3. External style4, the style sheet applicable environmentAll popular browsers support the most common media properties. This property can be applied to the element to determine the
Front-end developers, how much do you know about using CSS3 Tutorial-@font-face for personalized fonts? Today we introduce you to CSS3 @font-face, interested to understand the next.
In the Web page, we can use the CSS Font-family property to define
CSS3 is a lot of big on the function, 3D effect, animation, multi-column and so on. Write an article today to record how to write an animation with CSS3.
Ugly words still have to say, IE9 and the following version does not support CSS3 animation
You can define your own selectors with class selector classes and identity selector IDs.
The advantage of this is that depending on the class or ID, you can perform the same HTML elements differently.
In CSS, the class selector precedes a
Working principle
#wrapper必须触发hasLayout, or sometimes inside the content will float strange, I directly with float, can be used in other ways. In fact, if only to do this example to the effect of even #wrapper can not.#left定义100% width and take
But in fact, the browser far more than these, Firefox is divided into 3 major versions of Firefox 1.5,firefox 2,firefox, Ie7,ie6 also have several series, in addition to these two mainstream manufacturers of products, there are opera,
There are three common ways to clear floats.
This is not clear floating source code, run code can not see the parent element light yellow background.
left right
[Ctrl + A full selection Note: If you need to introduce external JS need to
Our design is increasingly pursuing a concise style, and we want to show more content in a limited space. At the same time we find some problems, the simple arrangement of content always makes the page very long. A lot of scrolling is required to
The page has a list of data, a table, placed in a div window with the following structure:
Copy CodeThe code is as follows:
.... List data ....
Set the style #container {width:100%; margin:10px;} for container;
Style is set for grid #
Common CSS and css for website beautification
With the rapid development of the Internet era, users not only meet the functional requirements of the software system, but also have increasingly higher requirements on the page display effect and
Detailed description of CSS3 3D conversion instances and css3 conversion instances
The 3D effects of CSS3 are very good. This article implements two simple 3D flip effects. First, let's look at the effect and source code. At the end of this article,
Most domestic designers like px, while most foreign websites like em and rem. What are the differences between them and their advantages and disadvantages?PX features1. IE cannot adjust the font size that uses px as the unit;2. Most foreign websites
What is the principle of CSS Hack?Because different browsers have different support for CSS and parse results, they also have a relationship with the priority of CSS. We can write different CSS for different browsers based on this.CSS Hack has three
Due to compatibility issues between browsers, in order to make the pages show relatively consistent in different browsers or for other reasons during webpage creation, the website creator summarizes various Hack methods; these methods are often used
Effect:Upper part of the textLower part of the textEffect of overlapping two groups of textsPrinciple:The two texts with the same color and different colors are overlapped. By adding the clip attribute to the texts respectively, the texts above and
3. Create at the top of the page (1)After we have written the DIV structure of the page, we can start to carefully create each part.In the article, we wrote some examples for the preview structure. We cleared all the styles in css.css and re-written
Sometimes, we need to add some special effects to images on the webpage, such as transparency, distortion, shadow, or flip. We generally think of using Photoshop and other graphic software for processing, in fact, we can also use some filters
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