Let’s take an example: the code is very simple, as follows:
dd | dds |
ss | sss |
In this way, a table with two rows and two columns will not display any errors in any browser. But if I add the following css, the situation is different:
It seems that there is going to be a problem, but don’t worry, in fact, you can’t see any problems on the surface at this time, and the page layout will definitely not be messed up,
You can't see anything overlapping.
I never wanted to fool you, although there is no problem on the surface, but now let our ie develop tool come into play, it will tell us the layout What did it bring?


Pay attention to the differences and similarities in the two pictures. Note the blue line circle in the left view Something, the function of this tool is to click on an element on the right side and it will be framed with a wireframe in the web page.
But note that I clicked two different elements twice. The wireframe framed the same place. Sweat, I read it right.
Yes, that is to say, the two tr overlap, but the strange thing is that the elements in tr are rendered completely correctly without affecting any appearance style. Don't think this is safe. The hidden danger is buried at this time.
I actually encountered this problem when making a simulation window. I used a two-row table. The first row is the window title bar, which can be dragged, and the second row is Make the main view, but later I found that the second row of the table covered the first row. Although it looked normal, the title bar was blocked and could not be clicked and dragged.
To fix this phenomenon, Just remove the position in tr
3. From this point of view:
I don’t know if you use some reset when writing css. Anyway, this is what I do, the css in my NetBeans The reset is stored in the template, and there will be a paragraph like this in the header of each css file:
/*
TODO customize this sample style
Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center ,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin : 0;
padding: 0;
border: 0;
outline: 0;
font-size: 12px;
vertical-align: baseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: none;
}
/* The style when the element gets focus! */
:focus {
outline: 0;
}
/* The style of special text! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
/* thin line table style*/
table {
border-collapse: collapse ;
border-spacing: 0;
}
Everyone knows that if you want to absolutely position an element, you must first position its parent element, for example, set a position: relative so that the child element can be absolute, and then position top and left.
So I I thought, this is too troublesome, I might as well set position:relative for all elements, and then change position:absolute for absolute positioning. This way, I don’t have to set them one by one, and all elements can be absolutely positioned.
So the problem mentioned in this article comes. We set position:relative for all elements, so there is a problem with the table, so this approach is not advisable, and it will cause some other rendering problems. I remember that I saw prompts in several places saying that this setting cannot be done.
This article is actually about layout, but this problem is indeed a bug in IE, not a layout problem. I will encounter layout next time Let’s talk about layout. By the way, this is really a strange bug.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Mac version
God-level code editing software (SublimeText3)