IE5 and its later versions support the use of expression in CSS to associate CSS properties with javas?cript expressions, where CSS attributes can be intrinsic or custom attributes of an element.
The CSS property can be followed by a
Many websites began to use Korean style to build stations. Most people will think of using Photoshop and other software to achieve this effect, but if the page on such a large number of pictures, or larger, will bring certain difficulties to access.
Today to make div height control when found ie control div height is very small when invalid, deliberately checked the relevant articles.
Finally, with the solution, refer to the following article:
If you want to make a line that is less than 12PX
1. Block and inline element comparison
All HTML elements are part of block and inline.
The block element is characterized by:
Always start on a new line;
Height, row height and top and bottom margins are controllable;
The width defaults to 100% of
One of the pictures needed:
aa I am Chinese Please input: Jb51.net
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
1. Selector (child selector)
If you want to hide a CSS definition in IE, you can use a child selector.
CSS section:
Html>body p {
* Declarations * *
}
2, "wildcard character" (*)
This type of writing can only be understood by IE browser
Toggle ()
Toggles the visible state of the element.
If the element is visible, switch to hidden, and if the element is hidden, toggle to visible.
---------------------------------
Example
Toggles the visible state of all paragraphs.
HTML
Notice the difference between the code and the traditional DHTML. In DHTML you change the style by directly modifying specific elements on the page, and the code here modifies the style sheet.View the compatibility List for the dom-css.DefinedA page
Offset
The offsettop and offsetleft two attributes of the elements in all browsers are useful. They will give you the coordinates of the element relative to the parent element.
This code looks up offsetparent, and then adds offsettop and offsetleft.
Use a global variable to save the last open object
College Information Advanced Education Enrollment Information Latest lectures School activities 1 currency conversion, the following figure shows the program The child simply puts
Both judge the resolution and also judge the browser
Re-refine the code to make it a good judge of browser type screen resolution automatically calls different CSS code.
Copy Code code as follows:
Explain:
var ie1024= "";
var ie800=
Title 1 title 2 title 3 title 4 title 5 title 6 Enter to see the effect!
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
In general, the Web page inside the JS file or code, are placed in the bottom of the page front, this is because the Web page loaded from the top down, users visit our page as far as possible because the load JS show too long blank page, stay too
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7 this.alt= ' Click here to open new Window\nctrl+mouse Wheel to zoom in/out ';} ' Border=0>
function:
1. The picture can be scaled, and the outer frame changes.
2. Image scaling,
New Document move background transform Move Background Transform Mobile Background transform Mobile background transform move background transform
[Ctrl + A All SELECT Note: If the need to introduce external JS need to
First step: Need to master the abbreviation of CSS skills refer to the following article to CSS abbreviations optimize the size of CSS files CSS common attribute abbreviations [recommended] Step two: Format and compress tools with CSS Step
The image above is after the CSS and jquery beautification effect, how? Isn't it cool? This is an effect I saw from another script library, and it was pretty good, and then I realized one with jquery. For everyone to appreciate!
Say not much,
In the JS script, there are two window.onload
Copy Code code as follows:
Window.onload = function () {
Alert ("AAA");
};
Window.onload = function () {
Alert ("BBB");
};
Will only execute one, this is the set of its own
This example for you to share the JS check box select and reverse the implementation code, for your reference, the specific content as follows
html+css+js Implementation check box selection and counter-election Select all check
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.