Example 1.
The following method can be perfectly implemented in IE6 support for fixed
Code:
The code is as follows
Copy Code
header This is content This is content This is content This is content This is content
$ (). CSS tutorial (', '); Set the value of the style attribute in all matching elements.
$ (selector). CSS (Name,value);
Look below for a
$ ('. AA '). CSS (' Display ', ' none ');
this is Content
Let's look at a simple jquery display
HTML section:
The code is as follows
Copy Code
css section:HTML, body {height:100%;}#wrap {min-height:100%;}#main {overflow:auto;padding-bottom:150px}/* To be the same height as footer * *#footer
The code is as follows
Copy Code
Usage examples:
The code is as follows
Copy Code
IE and FireFox will automatically add some rules, such as you only define BORDER:1PX solid #eee;
Directly in the CSS below plus
Start by adding a phrase to your CSS:
The code is as follows
Copy Code
* {Filter:gray}. Clear {Clear:both}Body {Background-repeat:repeat-x}
But the above can only be used in IE
Example 1
The code is as follows
Copy Code
Hi, did you see it? This is commonly used to the surface of the wording!
The above HTML forms a surface and four sharp corners, in fact, you only need one span
Layout attributes:In the previous HTML, the positions of elements can only be arranged in sequence. In CSS, you can locate elements more accurately. Netscape once proposed Layer tag, which is good for precise layout, but not recognized by W3C. W3C
1. DIV Center The code is as follows:Copy code Body {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.
How to center the entire page content, and how to automatically scale the highly adaptive content. This is the most common problem in CSS layout learning. The following is a practical example and detailed explanation. (The experience in this article
1. Do not let go of any small seemingly simple problem-they are often not that simple, or can draw out a lot of knowledge points;2. CSS will be used, which does not mean you will use CSS;3. Reading CSS books cannot learn the CSS language;4.
W3C Web design standards are a technology and an idea.Currently, many high-end customers require websites to be designed according to W3C standards. In the past two years and this year, many portal websites in China have reconstructed their code
Tip: you can modify some code before running Rounded corner effectThis code is provided by the webpage special effect network. Tip: you can modify some code before running
Tip: you can modify some code before running HomeSingle LevelDropdownDropdown OneDropdown TwoDrop down 2.1Drop down 2.2Dropdown 2.2.1Dropdown 2.2.2Dropdown 2.2.3Dropdown 2.2.4Dropdown 2.2.5Dropdown 2.2.6Dropdown 2.2.7Dropdown 2.2.8Drop down
Tip: you can modify some code before running Adaptive High-level layout in left and right columns与之间-->与之间--> Web page creation tutorial http://www.111cn.net Tip: you can modify some code before running
Tip: you can modify some code before running Www.111cn.net drag layer与之间-->与之间-->Automatically restored to the original drag layerDo not restore to the original drag layer Tip: you can modify some code before running
Background = "images/2law_0000jpg" is a 73*25 background image.. Alink {Display: block;Width: 73px;Height: 25px;Text-align: center }If the value of width is increased, the background will be repeated.How can we keep the original style, but
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