摘要
网页制作的布局一直是很多人非常关心的一个问题,早期的设计者大多使用表格定位的方法对页面元素进行定位,尽管如此,表格定位也只能解决平面布局中的定位问题。随着对人们对平面布局精确度要求的提高和三维空间定位的需求增加,越来越复杂的表格及浏览器解释时间的增加成了许多设计者难以忍受的问题。为了解除这些困扰,W3C在新的CSS中包含了一个绝对定位的特性,他允许设计者将页面上的的某个元素定位到任何地方,除了平面上定位,还增加了三维空间的定位Z-INDEX。因为Z-INDEX定义了堆叠的顺序,类似于图形设计中使用的图层,所以拥有了Z-INDEX属性的块元素被形象地称为层。主要论述层的基本知识,介绍了层的用法,并在最后给出用层来解决一个考试系统的浮动层的实现方法。
The homepage layout was a question which many people cared about extremely, the early designer mostly used the form localization method to carry on the localization to the page element, for all this, the form localization also only could solve the planar configuration localization problem. Along with people to planar configuration precision request enhancement and three dimensional fix demand increase,many designer encountered some unendurable question about more and more complex form and browser explanation time increase . In order to relieve these puzzles,W3C has contained an absolute fix characteristic in new CSS,it permited the designer locate some element to any place on the page,not only in parallel localization,but also increased three - dimensional space localization Z - INDEX. Because Z - INDEX has defined the order which piles up one on top of another,was similar chart level which used in the graph design,Therefore had the Z - INDEX attribute block element to be called vividly the layer. The article main elaboration level elementary knowledge, introduced the level usage, and finally is given a fluctuation layer realization method to solve an online test system.
出处
《现代电子技术》
2007年第8期129-131,共3页
Modern Electronics Technique