Глава 13. Слои 269
Примечание^)
Привязка слоя к точке 0,0 не эквивалентна отсутствию в тэге <LAYER>атрибутов LEFT и ТОР. Если оба эти атрибута опущены, содержимое слоя выводится в текущей строке.
На листинге 13.3 и рис. 13.3 приведен пример позиционирования слоя в середине страницы.
<HTML>
<HEAD>
<TITLE>Layer 3</TITLE>
</HEAD>
<BODY>
<P>You can position the layer anywhere you like.</P>
<P>This layer is positioned, however, so that it overlaps the HTML document below it. Notice how this text displays through the image's transparent background.</P>
<P>This layer is positioned, however, so that it overlaps the HTML document below it. Notice how this text displays through the image's transparent background.</P>
<P>This layer is positioned, however, so that it overlaps the HTML document below it. Notice how this text displays through the image's transparent background.</P>
<P>This layer is positioned, however, so that it overlaps the HTML document below it. Notice how this text displays through the image's transparent background.</P>
<LAYER TOP=40 LEFT=100><IMG SRC=init.gif></LAYER>
</BODY></HTML>