图像高度和宽度 [英] Image height and width

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

问题描述

我的网站上有数百张图片。缩略图都是标准的尺寸,大多数较大的缩放尺寸也相同。当我通过我的优化器运行我的html

代码时,如果我在html中没有图像

大小,则会抛出警告,但我想把它放在那里反而进入CSS,并清理

我的HTML代码。


更重要的是,在html中使用IMG大小,或者使用最小化的代码?

我知道html大小背后的理论是这样当poage加载它时

会留下可用于图片的空间,所以页面不会保留跳跃

关于它适应图片...如果所有

尺寸都包含在CSS中,这仍然有用吗?


谢谢


CM


-

==不坚果,只是有点古怪==

非洲丛林之旅和旅行社
http:// www。 africanbush.co.za/

I have hundreds of pictures on my site. The thumbnails are all a standard
size, and most of the bigger ones are the same size too. When I run my html
code through my optimizer it throws out a warning if I don''t have an image
size in the html, but I want to put that into the CSS instead, and clean up
my html code.

What''s more important, having the IMG size in the html, or minimalised code?
I knwo the theory behind the size in html is so that when the poage loads it
leaves a space available for the pics, so the page doesn''t keep jumping
about while it accommodates the picture... does this still work if all the
sizes are incorporated in CSS?

Thanks

CM

--
==Not nuts, just a little eccentric==
African Bush Tours and Safaris
http://www.africanbush.co.za/

推荐答案

On Sun,2006年5月7日11:30:51 +0200,pecan < PE ********** @ iafrica.com>写道:
On Sun, 07 May 2006 11:30:51 +0200, pecan <pe**********@iafrica.com> wrote:
什么更重要的是,在html中使用IMG大小,还是最小化的代码?
我知道html中大小背后的理论是这样,当poage
加载时,
为照片留下了空间,所以页面不会继续跳跃,而它可以容纳图片......


我发现当图像在页面设计中占据重要位置时,图像的大小很重要,就像带故事的插图一样。但是当

时它只是一个图像列表(行或任何布局),我不认为它/ b $ b很重要。
$ b如果所有
尺寸都包含在CSS中,$ b是否仍然可以工作?
What''s more important, having the IMG size in the html, or minimalised
code?
I knwo the theory behind the size in html is so that when the poage
loads it
leaves a space available for the pics, so the page doesn''t keep jumping
about while it accommodates the picture...
I find the size of an image matters when the image takes an important
place in the design of a page, like an illustration with a story. But when
it is just a list of images (in rows or whatever layout), I don''t think it
matters that much.
does this still work if all the
sizes are incorporated in CSS?




有一个简单的方法可以找到:你测试过吗?你问之前出来了吗?


-

______PretLetters:

|博客| http://www.pretletters.net/weblog/weblog.html |

| webontwerp | http://www.pretletters.net/html/webontwerp.html |

| zweefvliegen | http://www.pretletters.net/html/vliegen.html |



There''s an easy way to find out: Did you test it out before you asked?


--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |


pecan写道:
我的网站上有数百张图片。缩略图都是标准的尺寸,大多数较大的尺寸也是相同的尺寸。当我通过我的优化器运行我的html
代码时,如果我在html中没有图像大小,则会抛出警告,但我想把它放到CSS中,然后清理
我的HTML代码。

更重要的是,在html中使用IMG大小,还是最小化代码?
我知道html中大小背后的理论是这样的当poage加载它时,
为照片留下了一个空间,所以当页面容纳图片时,页面不会继续跳跃......如果所有的
尺寸是否包含在CSS中?
I have hundreds of pictures on my site. The thumbnails are all a standard
size, and most of the bigger ones are the same size too. When I run my html
code through my optimizer it throws out a warning if I don''t have an image
size in the html, but I want to put that into the CSS instead, and clean up
my html code.

What''s more important, having the IMG size in the html, or minimalised code?
I knwo the theory behind the size in html is so that when the poage loads it
leaves a space available for the pics, so the page doesn''t keep jumping
about while it accommodates the picture... does this still work if all the
sizes are incorporated in CSS?




不同之处在于,对于图像,宽度和高度是图像的固有

属性,不是可选的演示细节。



The difference is that with an image, the width and height are inherent
attributes of the image, not an optional presentation detail.




" Harlan Messinger" < HM ******************* @ comcast.net>在消息中写道

news:4c ************* @ individual.net ...

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:4c*************@individual.net...
pecan写道:
我的网站上有数百张图片。缩略图都是一个
的标准尺寸,大多数较大的尺寸也是相同的尺寸。当我通过我的优化器运行我的
html代码时,如果我在html中没有
图像大小,它会抛出警告,但我想把它放到CSS中,然后清理
up我的html代码。

更重要的是,在html中使用IMG大小,还是在最小化
代码?我知道html中的大小背后的理论是这样当poage
加载它时会留下一个可用于图片的空间,所以页面在它适应图片时不会继续跳跃。如果所有
的尺寸都包含在CSS中,这仍然有用吗?
I have hundreds of pictures on my site. The thumbnails are all a standard size, and most of the bigger ones are the same size too. When I run my html code through my optimizer it throws out a warning if I don''t have an image size in the html, but I want to put that into the CSS instead, and clean up my html code.

What''s more important, having the IMG size in the html, or minimalised code? I knwo the theory behind the size in html is so that when the poage loads it leaves a space available for the pics, so the page doesn''t keep jumping
about while it accommodates the picture... does this still work if all the sizes are incorporated in CSS?



不同的是,对于图像,宽度和高度是固有的属性图像,而不是可选的演示细节。



The difference is that with an image, the width and height are inherent
attributes of the image, not an optional presentation detail.




不确定其含义是什么。我正在将我的所有照片调整为相同大小的

,以便我可以在CSS中设置合适的尺寸。


CM



Not sure what the implication is of that. I am resizing all my pics to the
same size, so that I can set it up in CSS, for the right size.

CM


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

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