pixel.gif,为什么人们使用它? [英] pixel.gif, why do people use it?
问题描述
一个简单的问题,pixel.gif为什么有用?以及为什么要使用它?为什么不使用它?
Just a simple question, why is pixel.gif usefull? And why should you use it or why not?
推荐答案
像素gifs(通常称为shim.gif)用于较旧的网页设计(例如,比5年前更旧)以在页面或页面中提供空间.缺乏更好地了解健壮CSS的表格布局,或者浏览器的差异(通常是IE和Netscape之间)使生活变得过于复杂.
Pixel gifs (often called shim.gif) were used in older web designs (i.e. older than, say, 5 years ago) to provide a space in page or table layouts where a better understanding of robust CSS was lacking or if browser differences (typically between IE and Netscape) made life too complicated.
它们应该被视为过去的遗物,在当今的网页设计中,在专业的CSS布局中不会看到它们.但是,多年来未维护的较旧页面仍然有可能仍具有基于表的页面布局以及像素填充图像,从而为列提供了一些人为的间距.
They should be considered a relic of the past and would not be seen in a professional CSS layout in today's web design. However it is still possible that older pages that haven't been maintained over the years will still have table-based page layouts with pixel shim images to provide some artificial spacing for columns.
简而言之,除非为您的网站收集非JavaScript统计信息需要一张图片,否则您不应使用它们.
In short, you should not use them unless an image is required for non-javascript statistics gathering for your site.
这篇关于pixel.gif,为什么人们使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!