Figure:
This effect is even the News Module with three columns and four columns. I used table in the past and thought it was more convenient than CSS. After a floating occurs, Ul was used, it is easier to control. Let's take a look at the Code:
Newly written tree:
1. solved the problem of slow loading in large quantities.
2. Improved application interfaces and enhanced scalability
Let's take a look at the results first, and then write the relevant parameter documentation later :)
Just sent
Article Only one line is displayed.
Code , You can kill IE6.
Copy code The Code is as follows:
if you are using IE6, try it. click the run code button below. If the code is not dead after it is clicked, it means that your IE is not
Starting with the fixed width of the two columns, when trying the layout of the two columns, the width of the left and right columns can be adaptive. We know from the Adaptive Layout of the column, the adaptive setting is mainly based on the
. Test {
Width: 200px;
Height: 50px;
Border: 1px solid red;
Padding: 10px;
Overflow: hidden;/* do not display content that exceeds the object width */
Text-overflow: ellipsis;/* When the text in the object overflows, the omitted mark (...) is
Today I wrote a piece of CSS, and I suddenly thought of it. I 'd like to share it with you. We may have been used to the differences between padding in different browsers, but you may not have noticed this;
Let's start with a scenario, for example:
How to set the CSS to vertically center the text in the object on the object is also a problem that binds many friends. There are many
Code Are not compatible with browsers. I sorted out the relevant methods on the Internet and made some changes to
The block-level element Div should be used as little as possible. In fact, like the table, the smaller the number of nesting, the better, it will also affect the speed!
Ol ordered list. ...... ...... ...... Performance:1 ......2 ......3
There are four common ways to associate HTML documents with CSS:
Mark with Link
Use style element
Use the @ import command
Inline Style)
This Is a red word In practical applications, inline styles using the style attribute are not
We have listed more than a dozen related knowledge and points of attention. You can systematically discuss it and make the web pages we have compiled more smooth.
Please do not tell me, you do not understand e, but you do not want to read it !!!
Solution
The best way to display sub-menus in a navigation system is to create a sub-list in a list. The two levels of navigation bar marked in this way can be easily understood-even if the browser does not supportCSS.
To generate a multi-level
I. Partial style change
You can change the direct style, className, and cssText. Note that:
Note case sensitivity:
Javascript is case sensitive. className cannot write "N" as "n", and cssText cannot write "T" as "t". Otherwise, the effect cannot be
I did not find any tutorials or instructions on creating tag navigation using CSS. Most of them involve JS compiling. This is really not considerate for many people who are studying CSS. Since no one is doing it, I will try it first! The CSS label
1. Check whether the HTML element has a spelling error and whether it has forgotten the end mark.
Even veteran engineers often mistake the div nesting relationship. You can use the dreamweaver verification function to check whether there are any
The image amplification effect implemented with pure css is really good. I have read a lot of code that uses pure css to enlarge the image. It is not ideal.
See the following HTML code:
Snow capped mountains
The following is the CSS code:
1, default:
2. Move the mouse up:
Source: Today, I found in my colleagues' cell phone book that all the phone numbers he stored are displayed with names. Then, as long as I move them down, I will be able to display the corresponding number of this
Http://5key.net/blog/article.asp? Id = 309
Exclusive CSS under IE:
Copy codeThe Code is as follows:
IE 6 ONLY:Copy codeThe Code is as follows:
IE 5 ONLY:Copy codeThe Code is as follows:
Internet Explorer 5.5 ONLY:Copy codeThe Code is as follows:
Float is perhaps the most confusing concept in CSS. Float is often misunderstood, and the readability and availability problems caused by the floating of all context elements are highly blamed. However, the root cause of these problems is not 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