Use the
This is in contrast to the
The tag supports the following attributes -
Value | > | Description## layer |
name
The name of the inline layer that will be positioned directly above the current layer in the z-order. |
Background |
---|---|---|
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) | #xxxxxxColor Name The color used for the inline layer background. | Clip |
Number | Inline layer visible The coordinates of the area. | td>Height |
Pixels | The height of the inline layer , in pixels. | left |
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. | Name |
Layer | NameThe name of the inline layer. | pagex |
Number | Inline layer left Position relative to the browser window. | p> | pagey
Number | The top of the inline layer is relative to The position of the browser window. | src |
URL | will appear in the inline layer The URL of the page within. | Top |
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. | Visibility |
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. | Example |
<!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!