Home >Web Front-end >HTML Tutorial >css solves the problem that the parent div and the child div are not in the same container_html/css_WEB-ITnose

css solves the problem that the parent div and the child div are not in the same container_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:26:561118browse

 1 <html> 2 <head> 3 </head> 4  5 <body> 6 <div style="margin:0 auto;width:600px;border:1px solid red;height:aoto;"> 7  <div style="float:left;width:65%;margin:5px;border:1px solid green;">111</div> 8  <div style="float:right;width:30%;margin:5px;border:1px solid green;">222</div> 9  <div style="clear:both;"></div>10 </div>11 12 </body>13 </html>

 

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