The code for the first effect (corresponding to the first image) is as follows:
The code is as follows
Copy Code
These p tags are not placed outside the shadow layer //These several P tags are contained in the shadow
First to two pieces of code, a paragraph is HTML code, a section of CSS code, the following analysis is based on these two pieces of code.
HTML code:
The code is as follows
Copy Code
solve the problem of alignment
Difference IE6 with FF:
Background:orange;*background:blue;
Distinction between IE6 and IE7:
Background:green!important;background:blue;
Difference IE7 with FF:
Background:orange; *background:green;
Difference ff,ie7,ie6:
When writing CSS, use Background:url (#) or the page will be more than one request.
However, because write more CSS, the general need to use an empty background to solve the bug, the test results with Background:url (About:blank) is what we want:
The code is as follows
Copy Code
title area Content area
Note: The most important thing is to use the Overflow:hidden does not add this will not effectively add Overflow:hidden it is not automatically hidden in the
Tip: You can modify some of the code before running
css: Background color transparent, content is not transparent the ultimate way!" Compatible with all browsers website anti-fraud important tips shopping full 59 yuan free
Do not know if you have not noticed that the page below the picture will be more than 3 ~ 5 pixels, regardless of that browser is the case.
At first I was also found in the thumbnail of my homepage article list through the review element, because
There is a magical problem when designing the page, which is the HTML code
At this point I set the homecategory of the child container:
. homecategory{margin-top:30px;}Found margin relative to the parent container wrong, find body went, became
Compatible with rgba in IE8 and rgba in IE8
When I was working on a project a few days ago, I encountered a problem about transparency. Today I am blank to tell you some of my views and how to be compatible with transparency.
I. Two methods (IE9 +)
1
CSS selector is the basis for CSS webpage layout. What are CSS selector and how to use it properly? There are three types of delimiters. Apart from the first type of HTML selector, we can name the other two types by ourselves. When naming them, note
To sum up the following five points, you can refer to it.1. Read/writeRead my recommended posts, websites, and blogs. The purpose of the Internet is to share and spread, and those who have a deep understanding and practice of the technology will
What are standards? You can understand it slowly.The core of the standard is the separation of content, performance, and behavior. This is a consensus.CSS is one of the most important standards.HTML eventually develops towards XML, so there should
Advanced Learning: Combination and nesting of CSS selector in webpage styleCombinationYou do not have to repeat multiple delimiters with the same attributes. You only need to use commas (,) to separate the delimiters.For example, you have the
We should develop good coding habits. The overall CSS layout declaration provides a way to simplify our code and improve the running efficiency. Let's list common forms and add explanations. The purpose of the overall layout declaration is to make a
■ Inheritance and layer stackCSS rules affect the display form of an element. If no style match exists or multiple style rules match the element at the same time, which rule does the display form follow? This section describes how to inherit and
Style selectorProperty selector p {color: red ;}Class selector. p {color: red ;}ID selector # p {color: red ;}II. transparentBackground: transparent; prevent definition Background from being overwritten3. Transparent background understanding of
/* Mozilla.org Base Styles* Maintained by fantasai* (Classes defined in the Markup Guide-http://mozilla.org/contribute/writing/markup)*//* Suggested order:// Display attributes* Display* List-style* Position* Float* Clear// Attributes* Width* Height*
Tip: you can modify some code before running Always float at the bottom of the page to be perfectly compatible with IE6 fixeIe6 won't change either.Ie6 won't change either.Ie6 won't change either.Ie6 won't change either.Ie6 won't change either.Ie6
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