To be honest, this article will introduce some very mentally retarded knowledge.
However, it is indeed a very difficult knowledge.
There are usually two kinds of responses to the question:
How can people live with so many pitfalls. | It has just been pitted a few days ago.
2. Some people do not understand such basic things. The user level in the blog Park is getting worse and worse.
The above two cases of comments have long existed on the homepage, and are staged every day, just like the Korean drama of dog blood.
However, these are irrelevant to us. We only need to know how to fill in. Because the traps are rich.
As for others to laugh at themselves, cainiao... Haha.
--------------------------------- The above are all nonsense about egg pain ---------------------------------
1 Why does margin not work?
Check whether the display attribute is inilne.
Http://www.w3.org/TR/CSS21/visuren.html#inline-formatting
2 Why does Z-index not work?
Check the position attribute. Then try again. How can I spell the Z axis?
Https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Understanding_z_index/Stacking_without_z-index
3. CSS is not applied to HTML.
There are many reasons for this. But most of them are better solved. There are two solutions that are difficult to solve:
1) The problem occurs on IE browser. This is the most pitfall. IE has a problem with haslayout. Google is recommended for the specific method. You can write a 20 thousand-word graduation thesis.
Most of the reasons are concentrated on one point: block is not like Block
Therefore, the methods are basically concentrated on one point: to trigger haslayout.
There are many ways to solve this problem. I am too lazy to play because I may not be able to play 20 thousand words here, so you are too lazy to read this question.
2) The HTML you spelled is misunderstood by the browser.
Every browser has this problem. It's not about browsers, but about you. Misspelled HTML does not refer to misspelled tags. The Handwheel of misspelled tags should be used.
Spelling mistake means that you have spelled out some unconventional combinations, such as a p tag in tag.
Based on my experience (this sentence is equivalent to the fact that the following sentence may have no theoretical basis. It is purely a guess, no matter whether the author is right or not responsible ),
Add the tags of the default block to the default inline tag, which may cause crash and disorderly parsing.
3) according to current laws and regulations, your CSS attributes are not displayed
It involves the issue of CSS priority. You can write another 10 thousand-word essay. In general, the CSS you wrote is not specific enough. People wrote a more specific one and covered you.
Considering that this article is practicalArticleTo provide the following solutions:
First, please be diligent and studious. You should study the overall CSS structure and consider whether you want to adjust it. In short, there should be no things covered in disorder.
Second: this is a general solution. If your customer is in a bad state, your project is tight, your money is insufficient, or you are going to bubble girl tonight, or this is the last section before your departure.CodeYou hate your supervisor,
Let alone anything. We have an artifact (! Important), and inline style .......
CSS traps are far more than these. They are also a novice veteran.
But I'm very impressed with this. The rest cannot be thought of for a moment.
If you think about it, please leave a message. I can add it to my blog for future reference.
If this article will survive in the future, I will be able to make a little money by hanging an advertisement.