Home  >  Article  >  Web Front-end  >  Why does the layout become misaligned when a tag is added_html/css_WEB-ITnose

Why does the layout become misaligned when a tag is added_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:08:561664browse

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><title>测试a标签</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="description" content="" /><meta name="keywords" content="" /><style type="text/css">* {    margin:0;    padding:0;    border:0;}#container {    width:990px;    height:370px;    margin:auto;}#hot {    width:990px;    height:370px;    background:blue;}#ad {    float:left;    width:330px;    height:370px;}#exceting {    float:left;    width:391px;    height:370px;}#right-bar {    float:right;    width:250px;    width:370px;}</style></head>    <body>        <div id="container">            <div id="hot">                    <div id="ad">                        <a id="ad-a" href="#"><a>                    </div>                    <div id="exceting">                        <div id="cell1"><a href="#">ww</a></div>                        <div id="cell2">ss</div>                    </div>                    <div id="right-bar">                        <div id="right-top">                                                    </div>                        <div id="right-bottom"></div>                    </div>            </div>        </div>    </body></html>

As long as you add ee7959cc8dd4be16ef633321c03dac32ww5db79b134e9f6b82c0b36e0489ee08ed, the layout will immediately become misaligned. I have been looking for it for a long time. I hope an expert can help me out! ! ! 3b43c1be81049309c085a77b78efdff45db79b134e9f6b82c0b36e0489ee08ed
This a closing tag is not added /

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn