联系方式
保定市遨游计算机服务有限公司
全国热线:400-012-6696
售前咨询:13313028229
售前咨询:0312-3229012
售后:0312-6791400
售后:0312-6791120
地址:保定朝阳大街国贸大厦808室
网址:http://www.aoyouwangluo.com
网页的简单优化
[来源:www.aoyouwangluo.com] [作者:aowl] [日期:18-05-07] [浏览次数:]
在资讯类网站中,文字是页面中最大的构成元素,因此字体的优化显得尤为重要。使用css样式表指定文字的样式是必要的,通常我们将字体指定为宋体,大小指定为12px,颜色要视背景色而定,原则上以能看清且与整个页面搭配和谐为准。在白色的背景上,我们一般使用黑色,这样不易产生视觉疲劳,能保证浏览者较长时间地浏览网页。 In information website, text is the biggest constituent element in the page, so the optimization of font is particularly important. It is necessary to use the CSS style sheet to specify the style of the text. Usually, we specify the font as the song body, the size is 12px, the color depends on the background color, in principle, to be able to see and match the whole page. In the white background, we usually use black, which is not easy to produce visual fatigue, and can ensure that visitors browse the web for a longer time. 图片是网页中的重要元素。图片的优化可以在保证浏览质量的前提下将其size降至最低,这样可以成倍地提高网页的下载速度。利用Photoshop6或Fireworks4可以将图片切成小块,分别进行优化。输出的格式可以为gif或jpeg,要视具体情况而定。一般我们把有较为复杂颜色变化的小块优化为jpeg,而把那种只有单纯色块的卡通画式的小块优化为gif,这是由这两种格式的特点决定的。 Pictures are important elements in a web page. The optimization of pictures can reduce the size to a minimum under the premise of ensuring the quality of browsing. This can double the download speed of web pages. Using Photoshop6 or Fireworks4, you can cut the pictures into small pieces and optimize them separately. The output format can be GIF or JPEG, depending on the specific circumstances. In general, we optimize the small pieces with more complex colors to JPEG, and we optimize the small pieces of the simple color block to GIF, which is determined by the characteristics of these two formats. 表格(table)是页面中的重要元素,是页面排版的主要手段。我们可以设定表格的宽度、高度、边框、背景色、对齐方式等参数。很多时候,我们将表格的边框设为0,以此来定位页面中的元素,或者籍此确定页面中各元素的相对位置。我们知道:浏览器在读取网页html原代码时,是读完整个table才将它显示出来的。如果一个大表格中含有多个子表格,必须等大表格读完,才能将子表格一起显示出来。我们在访问一些站点时,等待多时无结果,按"停止"按钮却一下显示出页面就是这个原因。因此,我们在设计页面表格的时候,应该尽量避免将所有元素嵌套在一个表格里,而且表格嵌套层次尽量要少。在使用Dreamweaver制作网页时,会自动在每一个td内添加一个空字符“ ”。如果单元格内没有填充其它元素,这个空字符会保留,在指定td的宽度或高度后,可以在源代码内将其删去。 Form (table) is an important element in the page, and is the main means of page typesetting. We can set parameters such as width, height, border, background color, alignment and so on. In many cases, we set the border of the form to 0 to locate the elements in the page, or to determine the relative position of the elements in the page. We know that when browsers read the original HTML code, they will read the whole table. If a large table contains multiple sub tables, it is necessary to finish reading the large tables before displaying the subtables together. When we visit some sites, we wait for a long time without result, and click "stop" button to show the page is the reason. Therefore, when designing page forms, we should try to avoid nesting all elements in one form and minimizing nesting levels. When you use Dreamweaver to create webpages, you automatically add an empty character in every TD. If no other elements are filled in the cell, the null character will be retained. After specifying the width or height of the TD, it can be deleted in the source code.