This is the implementation of a function encountered in the P project, which I call the scroll bar positioning. Suppose there is such a list component U, when I click Item7, u will produce scrolltop value and u will be rendered again. When I
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
Write a button, there are two ways: first, direct button tag; second, input type= "button".
Either way, the button's width is not perfect at IE6, 7, and then we'll show you a regular button that you can use IE6 or IE7 to see its display width, and
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;
One, local change styleIt is divided into two types: change the direct style, change the classname and change the CSS tutorial text three. It is to be noted that:Note Case:Web effects on the case is very sensitive, classname can not be "n" written
Now, in the so-called "div + css" atmosphere, many people give up the table, in fact, we should make the best use of each tag, where the data is presented, we should still use the table. However, when creating a table, we will find that it has some
1. Basic syntaxThe definition of CSS consists of three parts: selector, properties, and value ).The basic format is as follows:Selector {property: value}(Selector {property: value })The selector can be in multiple forms. Generally, you need to
ClassIn order to define the webpage format more accurately, it is necessary to categorize the same selector and design different styles according to different categories. The basic format is as follows:Selector. Category name {attribute:
Simple explanation of several css elements div ul dl dt oldiv. This is very common. Block-level elements and div should be used as little as possible. Like table, the fewer nested elements, the better.Ol ordered list. ...... ...... ......
The DOCTYPE document type is often confusing for new users. In fact, this is only a set of machine-readable plans. Although there is a file URL in the middle, the browser will not read these files, but it is only used for identification. Then decide
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 Select demoDemo: download a mobile phone subjectU-box styleEnglishSimplified ChineseJapanDeutschEspa? OlFran? AisItalianoPolskiMac styleEnglishSimplified ChineseDeutschItalianoPolskiTm2008
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