Common text truncation (applicable to inline and block ):. Text-overflow {Display: block;/* Add inline objects */Width: 31em;/* specify the width */Word-break: Keep-all;/* Do not wrap */White-space: nowrap;/* force all texts to be displayed in the
Attention sequence:
# Menu {Line-Height: 23px;}/* implement this definition in Firefox */# Menu {Line-Height: 26px \ 9;}/* IE6, IE7, and IE8 define the hack for IE8 */# Menu {* line-Height: 23px;}/* IE6, IE7, which defines the hack for IE7 */# Menu
ArticleDirectory
Description
CSSMarginAttribute
MarginAttribute is a short attribute used to set all attributes with four margins in a declaration.Description
This short attribute sets allMarginOr set the width of the top and outer margins
www.achome.cn This is my personal blog, which contains some website design and production stuff, I hope you can communicate with each other. www.achome.cn This is my personal blog, which contains some website design and production stuff, I hope
1. Use
! Important syntaxSolve the layout difference between IE and other browsers
! Important is the syntax defined by css1 to improve the application priority of a specified style rule. Currently, Internet Explorer does not support this syntax,
We usually see a news list, for example, in order to keep the text blank and control the number of words, we will use the program to display the ellipsis for extra characters. We can only use CSS to achieve the same effect, although not perfect.
Li
In the use of Div + CSS webpage layout, CSS compatibility issues have been plaguing everyone. Before browser compatibility is resolved, comrades still need to work hard;The solution to compatibility between ie6.0 and Firefox is relatively easy, but
Preface
It has been a short time to start the front-end. The longer the CSS field goes, the farther it goes. Let's look back at it. If you have a lot of skills and knowledge, you won't forget it anymore, for example, how to achieve a triangle
Content = "text/html; charset = gb2312"/>
CSS
Menu
Id = fbtn>
Id = fbtn_txt>
G1
good
Morning
Id = fbtn>
Id = fbtn_txt>
G2
good
Evening
Id = fbtn>
Id = fbtn_txt>
m1
my name is
Fireyy
Id = fbtn>
Id = fbtn_txt>
m2
mm I
How to Use Div + CSS to build embedded pages and follow button changes
Effect illustration:
CSS code:
. Partl {Background: URL () # ffd77b repeat-y; overflow:
1. CSS in the tag. 2. CSS in the webpage. 3. CSS referenced by link. 4. Import the referenced CSS.
The source code is as follows:
four methods for introducing CSS
CSS in the tag CSS in the webpage CSS file referenced by link the CSS
character selection test A B
Such as the selection character of # first. Son, which is well supported by IE6 and later, FF, opera, Safari, and other browsers.The. Second. Son selector is not supported in IE6. The latter class
transform text by mouse in navigation Home homepage about about us News product product presentation contact Contact Us /A>
The principle is very simple and I will not explain it.
You may have mastered the basic CSS selectors such as ID, class, and background selector. But this is far from the whole of CSS. The following describes the 30 most commonly used selectors in CSS parsing for your system, including our biggest
Use Div + CSS to simulate the diagonal line of a table Category name table table table table table table
Principle: Use border-top: 50px solid # DDD; border-left: 100px solid # f7f8f5; to simulate a triangle;
Use
. All ie {property: value \ 9 ;}. gte ie 8 {property: value \ 0 ;}. lte ie 7 {* Property: value ;}. internet Explorer 8/9 {property: value \ 0 ;}. IE 9 {property: value \ 9 \ 0 ;}. IE 7 {+ property: value ;}. IE 6 {_ property: value ;}. not ie
1. haslayout of IE/win
2. Floating float definition. Will the display attribute of the element change after float?
3. What are the rules applied by modern browsers in CSS 3.0 and css2.1?
4. The parent element defines an initial height. If the
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