ArticleDirectory
1. Reset
2. Sorting
3. Organization
4. Consistency
5. Start from the correct place
Summary
Of course, everyone can write CSS.CodeYou have even made it work for your project. But can CSS be better? Use
Many of the above content is part of the introduction. If you have a better understanding of these content, you can directly jump to the "Solution to the box model problem" below to view the main content.
Let's talk about it first! Important
A box with an unfixed width is complicated. If the width is not fixed, it means that the box is flexible enough in both the horizontal and vertical directions.
Why is it even harder? Because it needs to fit the four images-use one for each
In the morning I saw Mr. Situ's Js version of the attribute selector (http://www.cnblogs.com/rubylouvre/archive/2009/10/27/1590102.html), but also inspired me to have a deep understanding of CSS selector learning desire, organized here for future
How can we make the text look like water, and the picture is like a stone in the water to let the water flow open?
You can use table or Div to set several carriers, but this is definitely not a good choice.ProgramPersonnel.
The IMG float
The box model is the core of CSS. The modern web layout design simply refers to the arrangement and nesting of a pile of boxes, and the box model and their placement control are mastered, we will find that the complex pages are not the same. However,
First reference http://www.stevekwan.com/archives/2008/02/734
In the future, you may be unhappy. I really don't understand that Adobe has added CSS to flex, but it does not support anything. What do you want to do?
In fact, unlike web page
The. Text blog's marvin2 template uses a floating layer, so no problems have been encountered before its CSS has been modified. Today, I still have to find a solution to this common floating layer overwrite other layers. Google, we can see that
Adding a shadow to an image can make the image look much more refined. In image processing software, adding shadow effects to images is very easy to implement. However, if you need to use software to process each image, it is obviously very annoying,
It is easy to implement vertical center of text in CSS. However, if you want to vertically center the text, there are still some tips. After searching online for half a day today, you can find the following method:
Doctype HTML public "-// W3C //
Some script I must post here in case of my bad memory. Maybe useful for my blog visitors.
1
VaR
Gethead
=
Function
(){
2
Return
Document. getelementsbytagname (
"
Head
"
)[
0
];
3
};
4
VaR
Controls the display and hiding of horizontal and vertical scroll bars?
remove the X axis.
remove the Y axis.
hide
Table color change
Onmouseout = "This. style. backgroundcolor = ''"
Style = "cursor: Hand">
Prohibit copying,
Extracted from http://bbs.zdnet.com.cn/thread-108803-1-1.html
This post is from zdnetchina Chinese Community Http://bbs.zdnet.com.cn, this post address: http://bbs.zdnet.com.cn/viewthread.php? Tid = 108803
[Explanation ]:
VaR ie1024 =
Method 1:
Method 2:
vertical center of images in a div
Method 3:
vertical center of images in a div
Method 4 (centered on the background image ):
vertical center of images in a div
General summary)
General principles
Complies with W3C general web page standards.
The structure is clear, the nesting is correct, and the nested depth is appropriate.
CodeRefined.
The annotations are clear and the code is highly readable.
I have heard that CSS is powerful before, and can completely replace htmlTAble,TR,TD (USerINterface. CSS not only avoids nesting in multiple layers of HTMLTCan also significantly reduce the size of webpage files,Make the page
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