In IE we simply use the CSS property of Text-overflow to implement the text overflow ellipsis.
Cases
The code is as follows
Copy Code
. entry_title{White-space:nowrap;Overflow:hidden;Text-overflow:ellipsis;}
The code is as follows
Copy Code
div Horizontal Center It's an element in the P tag.
Analysis
position:relative; is relative positioning, which is relative to the current level of the parentleft:50%; Center meaning (move
First to two pieces of code, a paragraph is HTML code, a section of CSS code, the following analysis is based on these two pieces of code.
HTML code:
The code is as follows
Copy Code
solve the problem of alignment
Causes:
The Overflow:hidden property of the parent element is invalidated when the direct child element of the parent element or the style of the subordinate child element owns the Position:relative property.
Solution:
We found in IE 6 that the
The code is as follows
Copy Code
title area Content area
Note: The most important thing is to use the Overflow:hidden does not add this will not effectively add Overflow:hidden it is not automatically hidden in the
The test environment is Firefox, IE is not measured.Directly gives the result: the fastest is the function setcss (els,name,val) {} This method of setting style, the second is to change the class name, the slowest is CSS ()
Recommended simple
By default, background properties are tiled, and if the background picture is larger and box is small, you can only display the background in the upper-left corner. If you want the background to be all displayed,
The code is as follows
Directly in the CSS below plus
Start by adding a phrase to your CSS:
The code is as follows
Copy Code
* {Filter:gray}. Clear {Clear:both}Body {Background-repeat:repeat-x}
But the above can only be used in IE
Tip: You can modify some of the code before running
pure CSS3 tab Latest entries & Lt;li class= "Hot" > Thermal review Bowen &L
T;label for= "random" > Random posts original wordpress Theme Tutorials #4: Hot
1. Simplified CSS font attributesIn general, CSS is used to set the font attributes as follows:Font-weight: bold;Font-style: italic;Font-varient: small-caps;Font-size: 1em;Line-height: 1.5em;Font-family: verdana, sans-serifBut you can also write all
1. Do not let go of any small seemingly simple problem-they are often not that simple, or can draw out a lot of knowledge points;2. CSS will be used, which does not mean you will use CSS;3. Reading CSS books cannot learn the CSS language;4.
To sum up the following five points, you can refer to it.1. Read/writeRead my recommended posts, websites, and blogs. The purpose of the Internet is to share and spread, and those who have a deep understanding and practice of the technology will
HTML has tags and CSS has selectors. The selector is used to name internal and external styles.Each selector has attributes in {}, such as simple points like color, font-weight or background-color.Values are separated by semicolons after colons (not
Sometimes we may want internal links to display different styles, such as external links. I want to add a small icon next to the link to indicate that it is an external link and tell the visitors to confirm whether the link is opened in a new window
We should develop good coding habits. The overall CSS layout declaration provides a way to simplify our code and improve the running efficiency. Let's list common forms and add explanations. The purpose of the overall layout declaration is to make a
/* Mozilla.org Base Styles* Maintained by fantasai* (Classes defined in the Markup Guide-http://mozilla.org/contribute/writing/markup)*//* Suggested order:// Display attributes* Display* List-style* Position* Float* Clear// Attributes* Width* Height*
Tip: you can modify some code before running When the child element is wider than the parent element width, [view it in a standard browser]I am floating left now (float: left), and my width is smaller than that of the sub-box, but it won't open me,
Tip: you can modify some code before running Album Video Album Member See Primary key servers Search Search for postsSearch by author Tip: you can modify some code
Div css tutorial javascript tutorial browser compatibility manualNot necessarily all, and some may be inaccurate. For example, the new IE8 and Chrome are not involved much. Although some recently developed projects are compatible with IE8 and Chrome,
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.