论文部分内容阅读
使用WIDTH和HEIGHT标签定义图片的大小,可以加速您的Web页面上图形的下载。如果没有这些标签,浏览器在显示图形及其周围文本之前必须先进行测试以获得其宽度和高度。如果Web页面给出尺寸信息,浏览器就可免去此步。 加速图形下载的另一个小技巧是在Web页面中使用小图片,并使用WIDTH和HEIGHT标签指明按照比实际尺寸大一些的尺寸显示此图片。同时,采用更少种类的颜色保存图片的方式也可以减少gif文件的大小。
Use the WIDTH and HEIGHT tags to define the size of the image to speed up the download of graphics on your web page. Without these tags, the browser must first test for the width and height of the drawing and its surrounding text before displaying it. If the Web page gives the size information, the browser can remove this step. Another trick to speeding up graphic downloads is to use thumbnail images in web pages and use the WIDTH and HEIGHT tabs to indicate that the image is displayed in a larger size than the actual size. At the same time, the way to save a picture with a smaller number of colors can also reduce the size of the gif file.