高度和宽度 [英] height and width

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

问题描述

大家好,


对于div,所有浏览器都会对它们进行同样的处理吗?


我一直假设宽度和高度包括边距和填充,

但是我在各种浏览器中的页面外观不同,这表明我的

假设不正确。

-

Ben Thomas


显然,不到10%的事故是由超过车速的车手引起的。

限制。 />

Hi all,

For divs, do all browsers treat these the same?

I''ve been assuming that width and height are inclusive of margin and padding,
but the different appearance of my page in various browsers suggests to me my
assumption is incorrect.
--
Ben Thomas

Apparently less than 10% of accidents are caused by drivers exceeding the speed
limit.

推荐答案

BenOne?写道:
BenOne? wrote:
对于div,所有浏览器都对待这些吗?


对待相同的东西?

我一直假设宽度和高度都包含边距和填充,
但外观不同我的页面在各种浏览器中向我暗示我的
假设是不正确的。
For divs, do all browsers treat these the same?
Treat what the same?
I''ve been assuming that width and height are inclusive of margin and padding,
but the different appearance of my page in various browsers suggests to me my
assumption is incorrect.




填充是元素与其边界之间的空间。保证金是元素之间的空间。

http://www.w3.org/TR/REC-CSS2/box.html


-

Brian(从我的地址中删除无效给我发电子邮件)
http ://www.tsmchughs.com/


Brian写道:
BenOne?写道:
BenOne? wrote:
对于div,所有的浏览器都对待这些吗?

对待它们是什么?
For divs, do all browsers treat these the same?

Treat what the same?




div的高度和宽度。



height and width of divs.

我一直假设宽度和高度都包含边距和
填充,但页面的外观不同在各种浏览器中
向我建议我的假设不正确。
I''ve been assuming that width and height are inclusive of margin and
padding, but the different appearance of my page in various browsers
suggests to me my assumption is incorrect.



填充是元素与其边界之间的空间。保证金是元素之间的空间。

http://www.w3.org/TR/REC-CSS2/box.html



-

Ben Thomas


显然不到10%的事故是由超过车速的车手造成的。

限制。


--
Ben Thomas

Apparently less than 10% of accidents are caused by drivers exceeding the speed
limit.


2004年4月27日星期二02:04:04 GMT,BenOne? <无** @ m.thanks.mate>写道:
On Tue, 27 Apr 2004 02:04:04 GMT, BenOne? <no**@m.thanks.mate> wrote:
Brian写道:
BenOne?写道:
BenOne? wrote:
对于div,是否所有浏览器都对待这些?
For divs, do all browsers treat these the same?



对待它们是什么?


Treat what the same?



div的高度和宽度。



height and width of divs.

我一直假设宽度和高度都包含边距和
填充,但我的页面在各种浏览器中的不同外观
告诉我我的假设是不正确的。
I''ve been assuming that width and height are inclusive of margin and
padding, but the different appearance of my page in various browsers
suggests to me my assumption is incorrect.



填充是元素与其边界之间的空间。保证金是元素之间的空间。

http://www.w3.org/TR/REC-CSS2/box.html



更多专家可能会给予一个详细的答案,但我的记忆告诉我

W3世界是虚拟的。在现实世界中,浏览器可能会以不同的方式处理
边距和填充。 (我听说过一些名为

" microsoft")

Mason C


A more-expert may give a detailed answer, but my memory tells me
that the W3 world is virtual. In the real world browsers may treat
margins and padding differently. (I''ve heard of something called
"microsoft")

Mason C


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

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