Home  >  Article  >  Web Front-end  >  How to add inline layer in HTML?

How to add inline layer in HTML?

WBOY
WBOYforward
2023-08-29 17:37:091092browse

How to add inline layer in HTML?

Use the tag to add an inline layer. The HTML tag is used to create a layer that takes up space within the containing text stream. Subsequent content is placed after the space occupied by .

This is in contrast to the tag, which creates a layer above the containing text flow, allowing subsequent content to be placed on the layer just created.

HTML

The tag supports the following attributes -

AttributesValueDescription AboveBackgroundBelowbgcolor#xxxxxxClipleftNameNamepagexpageysrcTopVisibilityExampleYou can try running the following code to achieve

>

## layer

name

The name of the inline layer that will be positioned directly above the current layer in the z-order.

URL

The filename or URL of the image where the text and image of the inline layer will appear on it.

Layer

Name

The name of the inline layer to be positioned is directly below the current layer in z order.

##rgb(x,x,x)

Color Name

The color used for the inline layer background.

Number

Inline layer visible The coordinates of the area.

td>Height

Pixels

The height of the inline layer , in pixels.

number

Inline layer left s position. If the currently inline layer is part of another layer. Called the parent layer - the position is relative to the parent layer.

Layer

The name of the inline layer.

Number

Inline layer left Position relative to the browser window.

p>

Number

The top of the inline layer is relative to The position of the browser window.

URL

will appear in the inline layer The URL of the page within.

number

Inline layer top Location. If the current inline layer is another layer—called the parent layer—then the position is relative to the parent layer.

show

Determine inline layers visible or not.

##Hide

Inheritance

Width

Pixels

The width of the inline layer , in pixels.

z-index

Number

Inline layer position in the z-order. Inline layers with higher Z-INDEX values ​​are placed above inline layers with lower Z-INDEX values.

Tags -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ilayer Tag</title>
   </head>
   <body>
      This <ilayer top = "4">word</ilayer> is shifted down, while this
      <ilayer left = "10">one</ilayer> is shifted over. With a negative value,
      words can be moved <ilayer top = "-4">up</ilayer> and to the
      <ilayer left = "-10">left</ilayer>.
</body>
</html>

The above is the detailed content of How to add inline layer in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete