In the form of Web page typesetting, generally can be used normally. Sometimes there is a continuous series of English words or a bunch of exclamation marks (!!!) The phenomenon that the page is stretched: (
summed up, as long as the CSS in the
use CSS + tags to complete a triangular production m one m Two m three
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
A return of 90 or 180 degrees should be interpreted as "flip 90 or 180 degrees", with a mirrored flip filter FLIPH,FLIPV.
A table does not move in situ
A simple table
table Flip along x-axis (90 degrees)
A simple table
table flips
Sometimes the picture is too big, will break the page neatly layout. You can use CSS to force a proportional compression of the picture's height or width
The CSS code is as follows:
Img,a
browser's conditional annotation theory, use the following example to explain this problem
X Html
The following code is a test of the effect of a conditional comment statement in Microsoft's IE browser
you are using IE browser
version 5
We should develop good coding habits, the overall layout of the CSS statement for our code simplification, improve operational efficiency provides a way. We enumerate the more commonly used forms and add explanations. The purpose of the overall
Div+css or more difficult to make, to achieve up and down two div highly adaptive feel trouble, check the data only to find the upper and lower height are percent is OK, I want to achieve the above div is the specific pixel height, the following is
CSS Properties-white-space whitespace attribute description
This CSS property is used to handle whitespace.
Value: Normal | Pre | nowrap | Inherit
Description of available value values
Normal default value. Text is wrapped in a natural line. If
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
Here is the test page.
Set transparency in JavaScript
I use the following code to set the transparency:
Copy Code code as follows:
function SetOpacity (value) {
testObj.style.opacity = VALUE/10;
TestObj.style.filter = ' alpha (opacity=
If the page contains a valid DOCTYPE declaration, it is rendered in strict mode.
If the page does not have a DOCTYPE declaration or a valid DOCTYPE declaration, it is rendered in compatibility mode.
There is a difference between the two modes, the
CSS and JS closely with, for our pages add a lot of chic effect. In order to achieve a particular effect we need to dynamically change the CSS properties of a particular label using JavaScript.
For example, the commonly used closure of a floating
Oo, object-oriented, significantly reduced by the amount of inherited code
The X in Jxtree represents XML and can be implemented with infinite levels of memory allowed
Compatible with IE Firefox, this is the principle I have always
Guys,
Way One: Directly write code implementation
The effect is as follows:
The code is as follows:
Copy Code code as follows:
Menu without table
Home
News
Sports
Weather
contact me
mode two: using jquery
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
Sometimes we might need to use jQuery to load an external CSS file, such as when switching page layouts. The idea is to create a LINK element and add it to the tag, and see how you can use JQuery first.
Below is my favorite writing:
$ ("")
.
Use JS to manipulate the CSS properties of the writing is a certain pattern:
1, for no underlined CSS properties are generally directly using style. Property name.
such as: Obj.style.margin,obj.style.width,obj.style.left,obj.style.position and so
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