Home  >  Article  >  Web Front-end  >  见过head写的东西会跑到body里面的本论坛不超过3个_html/css_WEB-ITnose

见过head写的东西会跑到body里面的本论坛不超过3个_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:361074browse

本帖最后由 shanglei005166 于 2012-10-16 13:43:38 编辑

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>aaaa</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">body{ padding: 0; margin: 0;}</style></head><body>  bbbbbbbbbbbbbb</body></html>


然后在chrome浏览器审查元素如下图:

 这样的结果就是 字不是顶格的  因为有个br的标签 并且head标签里面的为什么会跑到body里面 ?

回复讨论(解决方案)



aaaa




  bbbbbbbbbbbbbb




不是这个原因  这个我早试过了  是因为别的一些原因  三言两语的说不清楚  不过还是要谢谢你的回答 结贴给分

楼主什么原因啊,我也遇到了

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