在非常左上角制作桌子 [英] Making Table In Very Top Left Corner

查看:76
本文介绍了在非常左上角制作桌子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想让我的标题表(带有徽标和导航菜单)从

0,0开始。我试过了


body {margin-top:0px; margin-right:0px; margin-bottom:0px;

margin-left:0px;填充:0px;}


但在IE和FF中查看时,我的页面背景颜色仍然是一个3-5px的边框

。我怎么能在

全部没有边框?我看过很多网站都能达到这样的效果。


提前致谢

Hi

I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}

but I still have about a 3-5px border the color of my page background
when viewed in both IE and FF. How can I make it have NO border at
all? I''ve seen a ton of sites that achieve this look.

Thanks in advance

推荐答案

du*****@gmail.com 写道:
du*****@gmail.com wrote:

您好


我想让我的标题表(带有徽标和导航菜单)从

0,0开始。我试过了


body {margin-top:0px; margin-right:0px; margin-bottom:0px;

margin-left:0px; padding:0px;}
Hi

I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}



你为< htmlelement设置了margin和padding为0吗?


-

Els http://locusmeus.com/

无障碍网页设计: http://locusoptimus.com/


现在播放:Annie Lennox - 为什么

Did you set margin and padding to 0 for the <htmlelement?

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Annie Lennox - Why


Els写道:
Els wrote:
du ***** @ gmail.com 写道:
du*****@gmail.com wrote:

>我想制作我的标题表(带有徽标和导航菜单)从
0,0开始。我试过了

body {margin-top:0px; margin-right:0px; margin-bottom:0px;
margin-left:0px; padding:0px;}
>I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}



你是否为< htmlelement设置了margin和padding为0?


Did you set margin and padding to 0 for the <htmlelement?



...或者甚至可能用于< tableelement? :-)


[提出问题:为什么荷兰人使用< tablefor非表格数据?]


BTW,这是效率更高:


html,body,table {margin:0;填充:0; }


-

-bts

-Motorcycles无视重力;汽车只是吮吸。

...or maybe even for the <tableelement? :-)

[Begs the question: why is dutch using a <tablefor non-tabular data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

--
-bts
-Motorcycles defy gravity; cars just suck.




Beauregard T. Shagnasty写道:

Beauregard T. Shagnasty wrote:

Els写道:
Els wrote:
du*****@gmail.com 写道:
du*****@gmail.com wrote:

我想让我的标题表(带有徽标和导航菜单)从

0,0开始。我试过了


body {margin-top:0px; margin-right:0px; margin-bottom:0px;

margin-left:0px; padding:0px;}
I want to make my header table (with the logo and nav menu) start at
0,0. I tried

body {margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
margin-left: 0px; padding:0px;}



你是否为< htmlelement设置了margin和padding为0?

Did you set margin and padding to 0 for the <htmlelement?



..或者甚至可能用于< tableelement? :-)


[提出问题:为什么荷兰人使用< tablefor非表格数据?]


BTW,这是效率更高:


html,body,table {margin:0;填充:0; }


-

-bts

-Motorcycles无视重力;汽车只是吮吸。


..or maybe even for the <tableelement? :-)

[Begs the question: why is dutch using a <tablefor non-tabular data?]

BTW, this is more efficient:

html, body, table { margin: 0; padding: 0; }

--
-bts
-Motorcycles defy gravity; cars just suck.



这些解决方案都不起作用。虽然它们确实将内容更接近左上角,但是边缘之间仍有一些像素

和图形。


如果没有桌子,我该如何进行布局?

None of those solutions work. While they do bring the content closer
to the top left corner, there are still a few pixels between the edge
and the graphic.

How should I do my layout if not with tables?


这篇关于在非常左上角制作桌子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆