Browser conditional annotation theory, using the following example to explain the problem
X Html
The following section of code is the effect of testing conditional comment statements under Microsoft's IE browser
您正在使用IE浏览器
版本 5
版本 5.0
Statement: The following content collected in the network, after the understanding of the talented, to be organized and edited, reproduced please keep the link of the WIT station, thank you!!!
Wit's note: http://blog.54caizi.com
Play Web
Hide CSS for browser The lone nine swords
Hide CSS for Browsers
We all know that there are differences between browsers, and many people have a headache when making Web pages using the Xhtml+css method. It takes a lot of skill to work with these
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
a diagram with CSS to complete the navigation bar games Entertainment < Li id= "Eve" > menu fun
[Ctrl + A full selection
· UL tags in Mozilla default is padding value, and in IE only margin has value.
· The same class selector can be repeated in one document, but the ID selector can only occur once, CSS is defined using class and ID for a tag, and if the definition
, the URL here can be a relative path, or it can be an absolute path, width represents the breadth, height represents the width, can be adjusted according to the actual situation.
Scrolling indicates whether the page scroll bar is displayed, the
the Lightbox of CSS Tutorials
the definition of HTML and body tags for CSS tutorialsPart I video Part II video
Content:
One, 100% of the adaptive height to set both the HTML and body tags.
Second, the scope of the HTML tag is equal to the body tag
Return 90 or 180 degrees should be interpreted as "flip 90 or 180 degrees" and flip the filter FLIPH,FLIPV with a mirror.
A table is not moving.
A simple form
Table flipped horizontally along the x-axis (90 degrees)
XHTML is an English abbreviation for Extensible Hypertext Markup Language, which expands the Hypertext Markup Language.
The XHTML language is a markup language that does not require editing and can be executed directly by the browser.
XHTML was
Sometimes the picture is too big, will break the page neat layout. You can then use CSS to force proportionally compressing the height or width of the picture.
The CSS code is as follows:
Img,a
An effect of the navigation bar DIV+CSS
Apply now to the guest site!
Copy CodeThe code is as follows:
Find a Job
Find a House
Bicycle Trading
Take a car for a job
Carpool commute
CSS is an abbreviation for cascading style Sheets (cascading style sheets). is a simple mechanism for adding styles to a Web document, which belongs to the presentation layer's layout language.
1. Basic Grammar Specification
To parse a typical CSS
One, type selector
Body
{
font-size:12px;
}
{
Color:blue;
}
A selector for the name of a label type already in the Web page, as indicated above: All text size within the body tag is 12px, and the text color in the paragraph is blue.
Second, group
CSS is very valuable for browser compatibility, usually there is a big difference between IE and Firefox, here are the key points of compatibility.
Analysis of the height
IE: Will vary according to the height of the content, including the undefined
Because the smallest unit that the screen can display is 1px, there must be some trade-offs with the length of the number such as 773*50%=386.5.
Test page, some browser's label width is also inside
IE: Calculated by rounding.
Firefox: The
The label label in the HTML, the non-contact standard is afraid to be more unfamiliar. Even when exposed to the standard, many people just use it as a container to explain the elements in the form. The concept of things I do not here, I am
IE7 has been released for some days, so the website needs to take care of the browser one more. These two days the designers are doing compatibility, found a solution, here is both a share, is also a record. Using important! and/**/to differentiate
A long time ago, when there is no DW, we will have a grayscale connection.
Untitled document
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
Feel with UL and Li somewhat similar, but also is a kind of new idea, source code is as follows:
dl,dt,dd made CSS vertical menu Gallery paul Cezan Ne henri matisse vincent van gogh William Turner john constable claude monet
[Ctrl
See the share: Absolutely classic pulley news display (JAVASCRIPT+CSS) This post, are Css+js Control Classic, in fact, a single CSS can be done, just to be compatible with the garbage IE to not do a JS, the following code if you remove the JS part
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