Thursday, October 8, 2009

Dreamweaver 4 compendious tutorial (7, the composing of the webpage 3)

  The use of the layer


If you feel to use form to undertake locating control too hard to page element, might as well the attempt uses a layer (Layer) this good thing. Click the pushbutton of attribute face plate, cursor can become a cross, procrastinate on editor window move, can found give a layer, we can input the webpage element of the majority on the layer, for example picture, character. The advantage of the layer is to be able to set any positions in the page, pursue as follows:



After choosing a layer, corresponding attribute face plate is as follows:



   Layer ID: The name of the layer, use at identifying different layer;

   L, t: The position of the layer, l is the distance that is apart from page left border, t is the distance that is apart from the border on the page;
W, h: Of the layer wide and tall;

   Z-Index: The Z axis of the layer is ordinal;

   Bg Image: The setting of the layer pursues;

   Vis: The indication condition of the layer, among them Hidden is conceal the layer, be in sightless condition;

   Bg Corlor: The setting color of the layer;

   Tag: The code means that the layer uses, the DIV of general use acquiesce can;

   Overflow if the character inside the layer is too much, or the picture is too big, when the size of the layer can't show entirely, can choose:
Visible: The share that exceed shows all the same;
Hidden: The share that exceed is concealed;
Scrool: No matter have,deny exceed, show scroll;
Auto: Have occurrence roll of the ability when exceeding;
For example we choose Auto, so the layer in above example, can show when browse for:



The good point of the layer is apparent, but defect as much apparent, make a webpage that gets used to different resolution hard for example; Used many layer hind when a page, the complex rate of the page increases and bring about an editor to rise special loaded down with trivial details; Editor condition and the practical effect of the condition that browse have quite apparent difference to wait. Normally people is to use use Layer to undertake composing, the practice that is layer changeover form next (Modefy>Convert>Layers To Table) , particular operation is not added more here narrate, everybody but oneself try.

No comments:

Post a Comment