为什么我获得最高保证金。在这疯狂。请帮忙。 [英] Why I get a top margin. Going crazy here. Need some help, please.
问题描述
你好,
我正在主要的
(pBase)div中创建一个集中了各种div的网站。
不知何故,我在IE浏览器窗口顶部和IE浏览器中都有差距。
我尝试过我能想到的一切。这是我的整个HTML代码:
<!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>测试< / title>
< / head>
< body style =" text-align:center">
< div id =" pBase"风格= QUOT;明确:两者;保证金:0px auto; text-align:left;
宽度:960px">
< div id =" pHeader"> pHeader< / div>
< div id =" pContent">
< div style =" clear:both">< / div>
< div ID = QUOT; PLOGO" style =" float:left; width:107px;"> Logo< / div>
< div id =" pMenu" style =" float:left; width:600px;">菜单< / div>
< div style =" clear:both">< / div>
< div id =" pWhatsUp" style =" float:left; width:647px;"> WhatsUp< / div>
< div id =" pLogin" style =" float:left; width:100px;"> Login< / div>
< div style =" clear:both">< / div>
< div id =" pLeft" style =" float:left; width:100px;"> Left< / div>
< div id =" pCenter" style =" float:left; width:100px;"> Center< / div>
< div id =" pRight" style =" float:left; width:100px;"> Right< / div>
< div style =" clear:both">< / div>
< / div>
< div id =" pFooter"> pFooter< / div>
< / div>
< / body>
< / html>
有人可以帮帮我吗?我不知道还有什么可以尝试的!
谢谢,
Miguel
Hello,
I am creating a centered web site with various div''s inside the main
(pBase) div.
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
I tried everything I could think of. Here is my entire HTML code:
<!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>Test</title>
</head>
<body style="text-align: center">
<div id="pBase" style="clear:both; margin: 0px auto; text-align:left;
width:960px">
<div id="pHeader">pHeader</div>
<div id="pContent">
<div style="clear:both"></div>
<div id="pLogo" style="float:left;width:107px;">Logo</div>
<div id="pMenu" style="float:left;width:600px;">Menu</div>
<div style="clear:both"></div>
<div id="pWhatsUp" style="float:left;width:647px;">WhatsUp</div>
<div id="pLogin" style="float:left;width:100px;">Login</div>
<div style="clear:both"></div>
<div id="pLeft" style="float:left;width:100px;">Left</div>
<div id="pCenter" style="float:left;width:100px;">Center</div>
<div id="pRight" style="float:left;width:100px;">Right</div>
<div style="clear:both"></div>
</div>
<div id="pFooter">pFooter</div>
</div>
</body>
</html>
Could someone please help me out? I don''t know what else to try!
Thanks,
Miguel
推荐答案
在文章中
< 11 ********************** @ 79g2000cws.googlegroups。 com>,
" shapper" < md ***** @ gmail.comwrote:
In article
<11**********************@79g2000cws.googlegroups. com>,
"shapper" <md*****@gmail.comwrote:
您好,
我正在创建一个集中的网站在主要的
(pBase)div中有各种div'。
不知何故,我在浏览器窗口顶部都有差距IE
和Firefox。
我尝试了我能想到的一切。这是我的整个HTML代码:
Hello,
I am creating a centered web site with various div''s inside the main
(pBase) div.
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
I tried everything I could think of. Here is my entire HTML code:
有人可以帮帮我吗?我不知道还有什么可以尝试的!
Could someone please help me out? I don''t know what else to try!
我不知道你做的是什么?但是如果你希望在顶部摆脱差距,请尝试
< body style =" margin:0; padding:0;>
至少...
你找东西但没有css表...也许贴一个网址。
-
dorayme
I cannot make head nor tail of what you are doing really? But if
you want to be rid of gaps at the top try
<body style="margin:0;padding:0;>
at least...
You id things but there is no css sheet... Perhaps post a url.
--
dorayme
我是不使用CSS,因为我在HTML代码中添加了所有CSS样式。
我尝试了你的建议。我一直有差距。
有什么想法吗?
谢谢,
Miguel >
dorayme写道:
Hi,
I am not using CSS because I added all CSS styles in HTML code.
I tried your suggestion. I keep having the gap on the top.
Any idea?
Thanks,
Miguel
dorayme wrote:
文章
< 11 ************* *********@79g2000cws.googlegroups。 com>,
" shapper" < md ***** @ gmail.comwrote:
In article
<11**********************@79g2000cws.googlegroups. com>,
"shapper" <md*****@gmail.comwrote:
您好,
我正在创建一个集中的网站在主要的
(pBase)div中有各种div'。
不知何故,我在浏览器窗口顶部都有差距IE
和Firefox。
我尝试了我能想到的一切。这是我的整个HTML代码:
Hello,
I am creating a centered web site with various div''s inside the main
(pBase) div.
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
I tried everything I could think of. Here is my entire HTML code:
有人可以帮帮我吗?我不知道还有什么可以尝试的!
Could someone please help me out? I don''t know what else to try!
我无法做出你正在做的事情的头脑和尾巴?但是如果你希望在顶部摆脱差距,请尝试
< body style =" margin:0; padding:0;>
至少...
你找东西但没有css表...也许贴一个网址。
-
dorayme
I cannot make head nor tail of what you are doing really? But if
you want to be rid of gaps at the top try
<body style="margin:0;padding:0;>
at least...
You id things but there is no css sheet... Perhaps post a url.
--
dorayme
事实上它确实有效。我需要清除浏览器缓存。
我遇到的一个问题是:
我应该在div左右使用容器吗?
我总是得到不同的答案或意见。
我有点迷失它,因为它在Firefox 2.0中运行并且
没有容器的IE 6.0。
谢谢,
Miguel
shapper写道:
In fact it does work. I needed to clear the browser cache.
One question I have is:
Should I use a container around divs which float left?
I always get different answers or opinions.
I am a little bit lost about it since it is working in Firefox 2.0 and
IE 6.0 without the container.
Thanks,
Miguel
shapper wrote:
我没有使用CSS,因为我在HTML代码中添加了所有CSS样式。
我尝试了你的建议。我一直有差距。
有什么想法吗?
谢谢,
Miguel >
dorayme写道:
Hi,
I am not using CSS because I added all CSS styles in HTML code.
I tried your suggestion. I keep having the gap on the top.
Any idea?
Thanks,
Miguel
dorayme wrote:
文章
< 11 ********* *************@79g2000cws.googlegroups。 com>,
" shapper" < md ***** @ gmail.comwrote:
In article
<11**********************@79g2000cws.googlegroups. com>,
"shapper" <md*****@gmail.comwrote:
你好,
>
我我正在主要的
(pBase)div中创建一个集中了各种div的网站。
>
不知何故,我是在我的浏览器窗口顶部和IE浏览器中获得差距
和Firefox。
>
我尝试了所有我能想到的东西。这是我的整个HTML代码:
>
Hello,
>
I am creating a centered web site with various div''s inside the main
(pBase) div.
>
Somehow, I am getting a gap on the top of my browser window both in IE
and Firefox.
>
I tried everything I could think of. Here is my entire HTML code:
>
有人可以帮帮我吗?我不知道还有什么可以尝试的!
>
Could someone please help me out? I don''t know what else to try!
>
我无法做出你正在做的事情的头脑和尾巴吗?但是如果你希望在顶部摆脱差距,请尝试
< body style =" margin:0; padding:0;>
至少...
你找东西但没有css表...也许贴一个网址。
-
dorayme
I cannot make head nor tail of what you are doing really? But if
you want to be rid of gaps at the top try
<body style="margin:0;padding:0;>
at least...
You id things but there is no css sheet... Perhaps post a url.
--
dorayme
这篇关于为什么我获得最高保证金。在这疯狂。请帮忙。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!