googlesoso

Google
 

中药学视频语音-中药鉴定学视频语音-中药药剂学视频语音-中药学综合知识与技能视频语音-中药炮制视频语音-欧盟GMP认证指导资料-中药药材图片-生活常用病方

创建快速读入的带图象的网页Founds the fast read-in the belt image homepage

Uses the image in the homepage the question to lie in the read-in homepage the speed, if you use the image correctly in the homepage, this question will not be prominent. Must found the fast read-in the belt image homepage, please follow the following principle: uses the identical image as far as possible in yours homepage. When the browser reads in an image, it will retain an image in the buffer the copy. If you use the identical image in many pages, browser reads when these pages from Internet each time will not read in this image document. When you read in the identical image document, you should guarantee that the identifier the SRC attribute value on each page is the same. in reduction image palette's size. The majority of mapping software allows you to assign the GIF image the palette size, uses the smallest palette as far as possible. Pays attention to this and in the reduced image the color number is different. For example, if you, in had two kind of colors in the images to establish a 256 color palette, this will be the low efficiency. must certainly use the identifier WIDTH and the HEIGHT attribute. If you do not assign these two attributes, the browser will not know that should be an image keeps the big open area. In this case, after when the image completely reads, the browser meets the replotting entire homepage. Moreover, when on your homepage has many images, the browser can for each image time and time again replotting screen. uses the staggered GIF image as far as possible. Interlocks the GIF image to demonstrate on the screen when looks like quickly, because before the entire document transmits the browser, they start to demonstrate. This kind of psychological feeling is very effective, you should use them frequently. as far as possible do not choose these to have many different color images. Will have the massive identical color image transmission to be quick. Any matter is equal, in the image the color are more, needs to transmit the information are more. Usually, the simple picture is always friends with compared to the complex picture effect. do not use too many pictures in the homepage. In the particular case, the browser needs to send out the independent request for homepage on each specific picture to the server. Combines a big picture many neighboring small pictures to compared to transmit these small picture effect to be friends with alone. Usually, when you can combines many small pictures a big picture, you should do this.
在网页中使用图象的问题在于读入网页的速度,如果你在网页中正确地使用图象,这个问题不会很突出。要创建快速读入的带图象的网页,请遵循下面的原则:
在你的网页中尽可能地使用同一幅图象。当浏览器读入一幅图象时,它会在缓存中保留一幅图象的拷贝。如果你在许多页中都使用同一幅图象,浏览器从Internet上读入这些页时就不会每次都读入这个图象文件。当你读入同一个图象文件时,你应确保标识符的SRC属性的值在每一页上都是相同的。
减少图象中调色板的大小。大部分作图软件都允许你指定GIF图象的调色板大小,尽可能使用最小的调色板。注意这与减少图象中颜色的数目是不同的。例如,如果你在一幅只有两种颜色的图象中建立了一个256色的调色板,这将是很低效的。
一定要使用标识符的WIDTH和HEIGHT属性。如果你不指定这两个属性,浏览器就不会知道该为一幅图象留多大的空地。在这种情况下,当图象全部被读入后,浏览器会重画整个网页。而且,当你的网页上有很多图象时,浏览器会为每一幅图象一次又一次地重画屏幕。
尽量使用交错的GIF图象。交错GIF图象在屏幕上显示出来时看起来较快,因为在整个文件都传输到浏览器之前,它们就开始显示了。这种心理感觉是很有效的,你应该经常使用它们。
你尽可能地不要去选择那些有许多不同色彩的图象。具有大量同一色彩的图象传输起来会较快。任何事都是均等的,图象中色彩越多,需要传输的信息就越多。通常,简单的图片总是比复杂的图片效果要好。
不要在网页中使用太多的图片。在特定情况下,浏览器需要为网页上的每一幅特定的图片向服务器发出单独的请求。将许多相邻的小图片组合成一个大图片要比单独传输这些小图片的效果要好。通常,当你能将许多小图片组合成一个大图片时,你就应该这样做。
Pharma Technology 医药技术---一步就能为您和您的学习...

没有评论:

发表评论