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
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:
The CSS padding property defines the inner margin of an element. The Padding property accepts length or percent values, but negative values are not allowed.
For example, if you want all H1 elements to have 10-pixel internal margins on each side,
CSS picture vertically centered problem, I have been plagued for a long time, today can finally be summed up.
Method One: Using positioning
HTML structure such as:
The code is as follows
Copy Code
CSS code
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:
Tip: You can modify some of the code before running
website left fixed position scrolling code-Taobao information right body{width
: 100%;background: #7e6e57;p osition:relative;font-family:arial;} A{color: #0579C6;
1. Icon and text alignment
General icon and text alignment HTML code:
Front-End development blog
Delete front-end Development blog
Zxx CSS Code:
p{line-height:20px; font-size:14px;}. Icon {Display:inline-block;width:20px;
Objective
Inline-block, we usually use a lot of the most common use is a few div in a row to display, we use Display:inline-block. The reason for writing this article today is to write a few of the more peculiar usages of inline-block.
Implement
The current Web session, the vast majority of the layout of the pages are horizontally centered layout, the main body to set a width, and then margin:0 auto Rhythm ~
For example, the home page of the big Taobao:
However, this layout has a
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
The methods for hiding input are different in the browser. We do not want it to change its inline attributes when using it on a webpage. The following is an independent analysis:First, write a public style: The code is as follows:Copy code Input
I am doing the DIV layout code in this way. I don't know what to say, but I don't know what to say. Let's take a look.I divide the class into two types: layout class, style class, layout class is skeleton, style class is clothesFor example:For
1. DIV CenterBody {text-align: center ;}Div {margin-right: auto; margin-left: auto ;}Note:For IE, define "text-align: center;" in the parent element.For other browsers such as FF, the data cannot be centered. You need to define "margin-right: auto;
■ 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
I. Margin (frame distance) padding (border distance)Margin attribute setting sequence: Upper right bottom leftPadding attribute setting sequence: Top right bottom leftMargin: 25px 0 25px 0;Abbreviation: margin: 25px 0;II. Set Display attributes(1)
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
I haven't written something seriously for a long time. Recently, some people have asked me some questions about DIV + CSS layout. In fact, it is still caused by lack of entry-level layout. So the next article will help you get started...There are
Browser compatibility manual javascript and cssJavascript section1. document. form. item problemsProblem:The code contains statements such as document. formName. item ("itemName") and cannot be run in FF.Solution:Use document. formName. elements
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