Learn Web standards for months and follow standard design and make Web pages. Always want to write something, to organize their own experience. Writing this article, mainly for the Chinese layout design, English typesetting because it is rarely done,
I have two examples here, if your browser is IE, you can test!
1, first look at these lines of code!
Copy Code code as follows:
Note: I have written more than one Look at the effect, rest assured that this will not
First look at the picture (the image is just roughly done)
Effect Display :
Run Code Box
Untitled document menu menu ;li> Menu;/li>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to
One, the management of CSS
I personally feel more important, and the Internet seems to be relatively few say this
If you manage well, you'll save a lot of time and trouble when you call and define CSS
Here are some of my accumulated
The first is
and use to specify a style or binding script for the content. Although most HTML elements can set style information through the Style property, many HTML elements have their own default styles that might mix and even conflict with style-defined
There will be additions or modifications to the content over time, and it is hoped that the following things will be helpful or useless to the later standard learners.
The main content is the difference between IE and Mozilla and easy to ignore
Please select Abcdefghi_select Horizontal effect _ Cloud Habitat ABCDEFGHI
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
The function has two parameters and functions as follows:
Obj:img the parent container of the label group, the type is a DOM object;
Oevent:event object.
The advantage of this function is that the HTML code can be very concise, the use of pictures
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
Phones
New Phones 9290 8390 8290 8270 Compare all phones se
Rvice provider
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
clear with empty label
. clr {clear:both;}
Left
Right
using the Overflow property
#layout {overflow:auto; zoom:1;}
Left
Right
usage: After (non IE browser)
#layout: after{
Display:block;
Clear:both; Content: "";
Visibility:hidden; height:
The center of the page is generally a headache, especially for beginners. Incompatibilities between browsers can also pose a major problem. Here's a common way to center the page horizontally.
See "Proficient in CSS" below.
HTML code:
Copy
The following is part of the CSS content: below is a quote fragment: home Digital communications women men home books and audio movement &
Lt;span> Games Pets Hong Kong street Taobao Mall & Lt;/div>
. test{
width:200px;
height:50px;
border:1px solid red;
padding:10px;
Overflow:hidden; /* Do not display content that exceeds the width of the object * *
Text-overflow:ellipsis; /* Displays an ellipsis (...) when text overflows inside an object. )*/
First look at a picture:The principle is to use a label and span label to combine a full rounded rectangle with the left and right alignment of the background. And then through the hover label to slide the picture. And all you need is a
This is achieved with a pure CSS image amplification effect, really good, saw a lot of previous use of a pure CSS to achieve the image magnification code, are not ideal, or in this good AH
Look at the following HTML code:
Snow capped Mountains
This translation is not authorized by the author or the website. All rights are vested in the original author and the original website.
If you are authorized by the original author or the original published website, you are free to use this
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.