输入/ CSS宽度的问题 [英] Problems with width of input / CSS

查看:67
本文介绍了输入/ CSS宽度的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我的问题是关于以下html页面:
http://www.omeganet.de/test/test.shtml


有谁可以告诉我为什么如果页面显示在IE6中,那么文本输入框(第四个元素)是比其他元素更宽的


最新的Mozilla?如果在Opera中显示,输入框和

其他元素一样宽 - 应该如此。


非常感谢,


Peter

Dear all,

my question is concerning the following html page:
http://www.omeganet.de/test/test.shtml

Could anybody tell me why the text input box (the fourth element) is
wider than the other elements if the page is displayed in IE6 and
latest Mozilla? If displayed in Opera, the input box is as wide as the
other elements - as it should be.

Thank you very much,

Peter

推荐答案

2004年1月11日,Sun,Peter Pfannenschmid写道:
On Sun, 11 Jan 2004, Peter Pfannenschmid wrote:
我的问题是关于以下html页面:
http: //www.omeganet.de/test/test.shtml

要求人们花时间在

页面上调查问题是不礼貌的。你有它通过验证。

如果页面显示在IE6中,任何人都可以告诉我为什么文本输入框(第四个元素)比其他元素更宽
最新的Mozilla?


听起来像通常的盒子型号问题,但是我不愿意看到

更接近验证已经整理好了。

如果在Opera中显示,则输入框与
其他元素一样宽 - 应该是。
my question is concerning the following html page:
http://www.omeganet.de/test/test.shtml
It''s rude to ask people to spend time investigating problems with a
page before you''ve got it to pass validation.
Could anybody tell me why the text input box (the fourth element) is
wider than the other elements if the page is displayed in IE6 and
latest Mozilla?
Sounds like the usual box-model issue, but I''m unwilling to look
closer till validation has been sorted out.
If displayed in Opera, the input box is as wide as the
other elements - as it should be.




应该它?我会保留对此的判断。


我建议使用可见的边框等,这样你就可以看到

盒子模型是如何工作的。我自己的笔记就在这里
http://ppewww.ph.gla.ac.uk/~flavell/...yout-diag.html


但首要任务是解决验证问题。


然后通常的连续性,用于WWW的页面:


- 不要指定字体以pt为单位的大小(使用em或百分比)

- 不包括字体规格中的verdana

- 如果指定背景颜色,则指定文本颜色

*具有相同的特异性*,反之亦然。即总是指定

两者一起,或两者都没有。


简而言之,你可以通过在
$ b $之前阅读这个小组来获得更好的结果b发布到它。



"Should" it? I would reserve judgment on that.

I''d recommend using visible borders etc. so that you can see how the
box model is working. My own notes on that are here
http://ppewww.ph.gla.ac.uk/~flavell/...yout-diag.html

But the first priority would be to sort out the validation issues.

And then the usual litany, for pages intended for the WWW:

- don''t specify font sizes in pt units (use em or percent)
- don''t include verdana in font specifications
- if you specify a background colour then specify a text colour
*at the same specificity*, and vice versa. I.e always specify
either both together, or neither.

In short, you would get better results by reading this group before
posting to it.


> >我的问题是关于以下html页面:
> > my question is concerning the following html page:
http://www.omeganet.de/test/test.shtml


要求人们花时间调查问题是不礼貌的在你通过验证之前的页面。


按照你的方式告诉别人是很粗鲁的...我发现这个新闻组通常是




你的意思是这个;彼得;首先排除这个;
http://validator.w3.org/check?uri=ht...%2Ftest%2Ftest

..shtml

简而言之,通过在发布之前阅读该小组,您将获得更好的结果。

It''s rude to ask people to spend time investigating problems with a
page before you''ve got it to pass validation.
It''s rude to tell that to people the way you do... and I find it is typical
for this newsgroup.

What you mean is this; Peter; sort this out first;
http://validator.w3.org/check?uri=ht...%2Ftest%2Ftest
..shtml
In short, you would get better results by reading this group before
posting to it.




那你为什么(AJF)发帖呢? />

-------

MH



Then why are you (AJF) posting at all?

-------
MH


[后续设置为comp.infosystems。< a rel =nofollowhref =http://www.authoring.stylesheetstarget =_ blank> www.authoring.stylesheets]


Peter Pfannenschmid写道:
[Followup set to comp.infosystems.www.authoring.stylesheets]

Peter Pfannenschmid wrote:
我的问题是关于以下html页面:
http://www.omeganet.de/test/test.shtml

任何人都可以告诉我为什么文本输入框(第四个元素)如果是页面,则比其他元素更宽在IE6和最新的Mozilla中显示?如果在Opera中显示,则输入框与
其他元素一样宽 - 应该如此。
my question is concerning the following html page:
http://www.omeganet.de/test/test.shtml

Could anybody tell me why the text input box (the fourth element) is
wider than the other elements if the page is displayed in IE6 and
latest Mozilla? If displayed in Opera, the input box is as wide as the
other elements - as it should be.




您应该意识到''宽度' '属性指定内容

宽度而不是包含任何边距,边框和

填充的框宽度。


阅读所有关于CSSBox Model的信息。 [1]和视觉格式化模型

详细信息 [2]。您可以阅读视觉格式化模型。 [3]

部分。

__


[1] http://www.w3.org/TR/CSS21/box.html

[2] http://www.w3.org/TR /CSS21/visudet.html

[3] http://www.w3.org/TR/CSS21/visuren.html


-

Stanimir



You should realise that the ''width'' property specifies the content
width and not the box width which includes any margin, border and
padding in addition.

Read all about the CSS "Box Model" [1] and "Visual formatting model
details" [2]. You may read the "Visual formatting model" [3]
section, too.
__

[1] http://www.w3.org/TR/CSS21/box.html
[2] http://www.w3.org/TR/CSS21/visudet.html
[3] http://www.w3.org/TR/CSS21/visuren.html

--
Stanimir


这篇关于输入/ CSS宽度的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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