CSS教程_CSS免费实例教程_全面精通Css样式(2)

 2012-02-05 03:51:16   评论   826次浏览

         CSS教程第二课:用HTML制作网页就象是用画笔绘制一幅图画。只有那些对网页制作痴迷而执着的人才可能精确地实现预定的结果,这并不是正确的工具和灵活性就可以实现的。

         任何使用过HTML一个多星期的人都知道HTML是一种非常好的网页制作工具。所以有时候我们不得不制作体积相当大的GIF图象以获得想要的字体和布局。同样,有时候也不得不使用各种表格标签和隐藏的空格GIF图象以使页面的布局能达到预想的目的。

         的确有些荒唐。我们的编码实在是太复杂了,GIF用量越来越多,而我们的页面变得比英吉利海峡还要宽,互联网有限的带宽怎么可能通过这么宽的信息呢?这种设计并不是网页设计的最佳形式。

        但是,1996年底的时候悄悄诞生了一种叫做样式表(stylesheets)的技术。全称应该是串接样式表(Cascading Stylesheets-简称CSS)这位HTML的表弟向世人保证:

         将对布局、字体、颜色、背景和其它文图效果实现更加精确的控制。

  • 只通过修改一个文件就改变页数不定的网页的外观和格式。
  • 在所有浏览器和平台之间的兼容性。
  • 更少的编码、更少的页数和更快的下载速度。

 

         除了还不能全面支持我们常用的大多数浏器之外,CSS在实现其它承诺方面作得相当出色。CSS在改变我们制作样式表的方法。它为大部分的网页创新奠定了基石。

之后的5天,我们将漫游样式表的世界。你将学到样式表的基本知识并将其应用于你的网页中。你还将学到如何处理字体、图文、色彩、背景及定位等的详细技巧。

          今天,我们先在此浏览一下样式表的基本内容。

Like HTML web pages with a brush to draw a picture. Only those pages

produced obsessed and dedicated personnel to accurately achieve the

desired result, this is not the right tools and flexibility can be

achieved.

         Any HTML a multi-week all know that HTML is a very good web

authoring tools. So sometimes we have to make a large volume of GIF

images to obtain the desired font and layout. Similarly, sometimes

had to use a variety of form tag and hidden spaces GIF images to make

the page layout to achieve the desired purpose.

         Indeed, some absurd. Our code is too complicated, the amount

of the GIF, the page becomes the English Channel is also wide, that

will the Internet with limited bandwidth how likely by such a wide

information? This design is not the best form of web design.

        However, the end of 1996, was born quietly called style

sheets (stylesheets) technology. The full name should be cascading

style sheets (Cascading Stylesheets-referred to as the CSS) the HTML

-cousin to the world to ensure that:

         Will layout, fonts, colors, backgrounds and other Venturi

effect to achieve more precise control.

 
Only by modifying a file, change the appearance and formatting of

pages uncertain pages.
Compatibility in all browsers and platforms.
Less code, less the number of pages and faster download speeds.
 

         In addition to not fully support the most commonly used

browser control, the CSS in the realization of other commitment for

quite excellent. CSS change our method to produce the style sheet. It

helped lay the foundation for most of the pages innovation.

After five days, we will roam the world of style sheets. You will

learn the basic knowledge of the style sheet and apply it to your web

page. You will also learn how to deal with fonts, graphics, colors,

backgrounds and positioning techniques.

          Today, we first look at the basic content of the

stylesheet.

 

                                                      技术提供:尽享网      Jinshare.com   天岛小然

蚂蚁森林为我浇水吧!

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: