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

How to add inline layer in HTML?

WBOY
Release: 2023-08-29 17:37:09
forward
1142 people have browsed it

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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template