HTML
HTML ( DHTML) HTML-, . , . , , , HTML. HTML-. , .
HTML . HTML , HTML- , , XML-. . , Web-, HTML . . , -, JavaScript VBScript.
HTML CSS .
DHTML - . ( ) , Web- , . DHTML , IE NN. , , HTML, :
- HTML 4.0;
- CSS (Cascading Style Sheets);
- DOM;
- (JavaScript / VBScrit).
, . CSS
CSS (Cascading Style Sheets ) HTML-. XML-.
. position .
position:relative. position:relative ( , position:relative).
position:relative
h1 {position:relative;left:10;}
h1, .. , <h1>. , HTML , . XML XHTML , . ( 10 ).
|
|
position:absolute.
position:relative
h1{position:absolute;left:10;}
h1 10 .
( 21.1) ( 21.2) prel.html pabs.html. 20 .
21.1
prel.html
<html>
<head>
<style>
h1.example1{position:relative;left:40;}
h1.example2{position:relative;left:-20;}
</style>
</head>
<body>
<h1> </h1>
<h1 class=example1> +40</h1>
<h1 class=example2> -20</h1>
<p> . </p>
<p> left:40 40 . </p>
<p> left:-20 20 . </p>
</body></html>
pabs.html
<html>
<head>
<style>
h1.x {position:absolute;left:120;top:150;}
</style>
</head>
<body>
<h1 class=x></h1>
<p> .</p>
<p> 120 150 .</p>
</body>
</html>
21.2
. visibility , . :
visibility:visible visibility:hidden
visibility :
h1{visibility:visible;}
h1{visibility:hidden;}
visibility.html , HTML- (. 3).
visibility.html
<html>
<head>
<style>
h1.1
{visibility:visible;}
h1.2
{visibility:hidden;}
</style>
</head>
<body>
<h1 class=1> </h1>
<h1 class=2> </h1>
<p> .</p>
</body>
</html>
21. 3
Z-index. () Web- , ( ). z-index. z-index . .
z-index :
h1
{z-index:1;}
h2
{z-index:2;}
zindex.html
zindex.html
<html>
<head>
<style>
|
|
img.x
{position:absolute;left:0;top:0;z-index:-1;}
</style>
</head><body>
<h1></h1>
<img class=x src=pic.gif>
<p> z-index 0. Z-index -1 , , .</p>
</body>
</html>
21.4 , , . , z-index , . z-index 0. z-index, . z-index , .
21.4 z-index
z-index 1, , ( 21.5).
21.5 ,
. . :
h1
{width:100%;filter:glow; }
21.6 ( filter.html).
<html>
<head>
<style>
h1
{width:100%;}
</style>
</head>
<body>
<h1 style=filter:glow()></h2>
<h1 style=filter:blur()></h2>
<h1 style=filter:fliph()> </h2>
<h1 style=filter:flipv()> </h2>
<h1 style=filter:shadow()></h2>
<h1 style=filter:dropshadow()></h2>
<h1 style=filter:wave(Strength=2)></h2>
<p> , width.</p>
</body>
</html>
21.6 ,
( alpha.html) ( 21.7). , , .
21.7
, . , , , .
, . , , .
, , , , .
. . , , , , .
:
1. CSS?
2. ( ) ?
3. ?
4. ?
5. ?
6. () ?
7. ?
8. ?
9. ?
10. alt ?
|
|
11. title ?
12. style?
13. style?
14. HTML?
15. HTML?
16. , ?
17. z-index , ?