没什么问题 两个div中间是贴在一起的。头顶的空白可以在body中添加margin-top:0px去掉。
加上这个css试试:
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, p, blockquote, th, hr{
margin:0;
padding:0;
}
一般CSS都要reset。
body{
margin:0;
padding:0;
}
css中加入上述语句再试试
这不是头部距离好不好,叫距顶!!
一看,就觉得肯定是你的#t1的样式出的问题;
把margin-top设置为0px,不就搞定了么!#advertisement是没问题的!
或者你把两个div的顺序改变一下也可以让id为advertisement的在上,t1的在下!也可以解决!
so easy!