CSS settings text overflow does not show or display ellipses, only a certain length of text, IE9 just set
The code is as follows
Copy Code
Div{white-space:nowrap;text-overflow:none;}
Or
The code is
HTML code First line Second Line Third Line
2. CSS Tutorial Codebox{width:150px height:25px;line-height:25px; border: #bbb 1px solid; overflow:hidden;}. box ul{margin:0; padding:0}. box li{height:25px; line-height:25px; font-size:12px;
For fixed-width, non-floating elements we can use margin:0 Auto to center horizontally in CSS, and we also have a common technique for variable-width floating elements to solve its horizontal center problem. There are a number of ways to solve the
First of all, to say briefly what is Sprites,sprites is a Web image application processing. It allows you to include all the bits and pieces of a page that are involved in a larger image, so that when you visit the page, the loaded picture will not
Usually a very small number, after a layer of amplification distortion, the entire layout is shape. CSS is a very simple language, easy to learn and easy to use, but also the most easily out of the garbage code. This was not the result of a thorough
In fact, the picture here can be defined with CSS code when used normally.
making CSS mouse hover menu using picture switching technology
home About Contact Forum guestbook
[Ctrl + A All SELECT Note: If the need to
We often see in the page, such as Web site can not be broken automatically (as shown below)
If it is a Chinese character, you can wrap the line automatically. If it is a continuous English or number will be regarded as a word, even if
1, remove input remember the password automatically fill out the yellow background of the form
Input:-webkit-autofill {-webkit-box-shadow:000px1000px#fffinset; }
Common Div+css page Dislocation problem
1, the Web page in a version of the browser display normal, different versions of the browser display dislocation is not normal
2, is about the structure of the page layout, but left and right into the top
IE vs FFCSS Compatibility highlights: DOCTYPE affects CSS processingFF: When div sets margin-left and margin-right to auto, it is already centered, and IE is not working.FF: When you set text-align for the body, you must set margin: auto (mainly
Current page-for example, if the current page is a homepage, the color of the homepage on the navigation bar is different from that of other topics, which is used to give a clear indication to the viewer.Next, let's take a look at the specific
The principle of Multi-Colored Text is to combine two texts with the same color and different colors, and add the clip attribute to the elements respectively, make the Text above and below have different cutting locations, set different colors, so
The value of background-position can be the unit of length, percentage, or keyword.The length unit is easy to understand. The value is positive, and the value is negative. In the keyword, "left top" means "0% center" means "50% right bottom" means "1
Attribute of an element can also be used for selector. The following lists several modes:Attribute Selector PatternsModeDescriptionE [attr]Attribute selector: specifies an Attribute selector that matches any eelement containing this Attribute. You
Many of my contacts asked me how to learn how to create Web pages based on Web standards? I think every person who just came into contact with web standards will ask such a question. I will summarize it based on my own experience.1. Do not use DW or
Margin is one of the most commonly used attributes in CSS la S. However, if it is not used properly, too much junk code is often generated, increasing the size of our encoding. Today we will introduce a small example of code optimization. Through
Are CSS files prepared first or HTML files written first? There are many answers on the Internet: write HTML first and then CSS; write CSS first and then HTML; write both at the same time.My principle is to write HTML first and then write CSS to
How to use ID and CLASS? I have mentioned usage principles and skills in the title. The usage principles and skills here are my summary of experience. They are not from which books, so they are not authoritative discussions, please read this article
Tip: you can modify some code before running Webmaster special effect network, with quality as the core, for practical purposes, to create a first-class webpage special effect station !, Special js effects for webmasters. Webmaster
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.