. , 3 :. ( - , , ); ( "", .. - ); ( ( ).
47. : (CSS - Cascading Style Sheets) - - . <HEAD></HEAD> - <STYLE>. , , . -, .. . , .
CSS.
:
color ; : . : color: #f00;
background-color ; : . : background-color: #ffc;
background-image ; : url(path/filename.ext).
: background-image: url(../bgr.gif);
background-repeat ; : no-repeat,
repeat, repeat-x, repeat-y ( ( ),
, , ).
: backgr ound-repeat: no-repeat;
:
font-family; : .
(serif, sans-serif monospace),
: font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
"Times New Roman", Times, serif; "Courier New", Courier, monospace;
font-size; :
.
(1) , (2)
. : font-size: 16pt
font-style"" ; : italic ( ) normal : font-style: normal
font-weight; : bold () normal : font-style: normal
|
|
:
text-align; : left, right, center justify ( , , ,
). : text-align: center
text-decoration; : underline none : text-decoration: underline
text-indent ; : m
x . : text-indent: 1em;
:
margin-top, margin-bottom, margin-left, margin-right. :
m x
. : margin-left: 40px;
padding-top, padding-bottom, padding-left, padding-right (
). : m
x . : padding-left: 3px;
border-width . . : border-width:
1px;
border-color . : . : border-color: #f00;
border-style. ,
. : none, solid, double (, , ). double
border-width 3px. : border-style: double;
border-top, border-bottom, border-left, border-right, , , .
width, -color, -style .
. : border-left-style: none;
float . : left, right, none ( , , ).
, , : <div>
, float:left, , .
. : float: left;
49. : - ( . STYLE ). ( STYLE, HEAD. STYLE .) ( . CSS. LINK,. HEAD. ).
50 JavaScript - , HTML . Netscape Sun Microsystems Sun's Java. JavaScript Web- , HTML. - , . Web- , JavaScript, . , . JavaScript