CSS CSS HTML selector styleproperty value selector styleproperty

  • Slides: 22
Download presentation

โครงสรางคำสง CSS การเขยน CSS ในเอกสาร HTML ของเราเลย <selector style="property: value"> <selector style="property 1: value

โครงสรางคำสง CSS การเขยน CSS ในเอกสาร HTML ของเราเลย <selector style="property: value"> <selector style="property 1: value 1; property 2: value 2"> 2 1 Selector ������ HTML element/tag �������������� Property ��������������� ������� Value ������������ <body style="background-color: blue"> ������� ������� <h 3 style="color: green; font-family: sans-serif"> 1 2

1. ������ Font-size <selector style="font-size: 200%"> <selector style="font-size: 20 px">

1. ������ Font-size <selector style="font-size: 200%"> <selector style="font-size: 20 px">

2. ������ Text-align <selector style="text-align: center"> <selector style="text-align: left"> <selector style="text-align: right"> text-align รปแบบ

2. ������ Text-align <selector style="text-align: center"> <selector style="text-align: left"> <selector style="text-align: right"> text-align รปแบบ การจดขอค วาม left center right

3. �� ���� Color <selector style="color: pink"> <selector style="color: #FF 0000"> <selector style="color: rgb

3. �� ���� Color <selector style="color: pink"> <selector style="color: #FF 0000"> <selector style="color: rgb 0 59 122"> ����� �� 3 ������ 1. ��������� 2. �������� Hexadecimal 3. �������� RGB ������� http: //www. coolplaa. com/css 3_6. html

5. �������� Font-family style="font-family: ���� Font " ���� style="font-family: Font. Nongnam"

5. �������� Font-family style="font-family: ���� Font " ���� style="font-family: Font. Nongnam"

background-repeat style="background-image: url(image/dog. jpg); background-repeat: repeat-y” repeat-x : ������� repeat-y : ������� no-repeat :

background-repeat style="background-image: url(image/dog. jpg); background-repeat: repeat-y” repeat-x : ������� repeat-y : ������� no-repeat : ������ repeat-x repeat-y no-repeat

��������� ������ background-color style="background-image: url(image/dog. jpg); background-repeat: repeat-x; background-color: pink”

��������� ������ background-color style="background-image: url(image/dog. jpg); background-repeat: repeat-x; background-color: pink”

background-attachment style="background-image: url(image/dog. jpg); background-attachment: fixed” ���� ��� scroll bar ����

background-attachment style="background-image: url(image/dog. jpg); background-attachment: fixed” ���� ��� scroll bar ����

background-position style="background-image: url(image/dog. jpg); background-position: right center” background-position: right center background-position: 50% background-position: 20

background-position style="background-image: url(image/dog. jpg); background-position: right center” background-position: right center background-position: 50% background-position: 20 px 40 px

3. ����� background color style="backgroundcolor: ������ "

3. ����� background color style="backgroundcolor: ������ "

����� style="border-style: solid; border-color: orange"

����� style="border-style: solid; border-color: orange"

����� ���� �� ���� style="border-style: solid; border-color: #99 CC 66 blue green black" style="border-style:

����� ���� �� ���� style="border-style: solid; border-color: #99 CC 66 blue green black" style="border-style: dashed dotted solid double; border-color: #FF 6633"